Clicking Xtify notification to launch the android app | Appcelerator -


i've managed integrate xtify push notifications titanium app android. receive notifications when click them don't open anything, disappear.

this tiapp.xml:

<property name="com.activate.gcm.sender_id" type="string">my_sender_id</property> <property name="com.activate.gcm.icon" type="int">2130837504</property> <property name="com.activate.gcm.component" type="string">com.mycompany.myapp/com.mycompany.myapp.myapp</property> <!-- [package name]/[package name].[activity name] --> 

and xtify code in app.js file:

var g = require('xtify_plugin/globals'); var push = require('xtify_plugin/pushnotificationservice'); ti.app.fireevent(g.events.app_opened); 

my sender id correct , receive notifications already. wanna know if missed code handle notifications. think should @ least open app on own.

make sure have same android:name value in androidmanifest.xml , tiapp.xml gcm component property. has resolved our issue


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -