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
Post a Comment