Comments (10)
See https://github.com/morinel/gcmpush/blob/master/example/app.js#L40-57
from gcmpush.
@morinel I know the callback but i wont fire function when user click on it like this
CloudPush.addEventListener('callback',function (evt) {
Ti.API.info('Inside CloudPush-Callback.');
});
CloudPush.addEventListener('trayClickLaunchedApp', function (evt) {
Ti.API.info('Inside CloudPush-trayClickLaunchedApp. Payload => ' + evt.payload);
});
// Triggered when the push notifications is in the tray when the app is running
CloudPush.addEventListener('trayClickFocusedApp', function (evt) {
Ti.API.info('Inside CloudPush-trayClickFocusedApp. Payload => ' + evt.payload);
});
from gcmpush.
Right, I'm open for pull requests from any developers implementing this feature.
from gcmpush.
@morinel Ok thanks man for help :)
from gcmpush.
Any update to this? Seems like a critical feature to know if a user actually opened the app by clicking a notification?
from gcmpush.
@mark22 You can fix this issue by make local notifications thats fire when notifications revice and put you callback on it
from gcmpush.
@MahmoudElmoghazy Sounds interesting! Any possibility of posting up some code, I don't exactly follow how to do it. Thank you!
from gcmpush.
yes sure i will make app with local notifications this next saturday and i will upload it to github and i will inform you don't worry
from gcmpush.
Ti.Goosh seems to have solved the issue, maybe the solution for us is something similar?
from gcmpush.
@mark22 Thank u for this module this module is the one
https://github.com/caffeinalab/ti.goosh
from gcmpush.
Related Issues (20)
- Can't install the module HOT 2
- google.sent_time expected String -> crash HOT 8
- Error: Alloy is not defined HOT 1
- Module not compatible with SDK 5.4.0 ?? HOT 4
- FCM compatibility HOT 15
- registerPush called twice HOT 3
- compiled module HOT 2
- Titanium sdk 6.0.0 support? HOT 46
- Exception en Google Play Store
- Notification Push when app is closed and I want launch a specific function. HOT 1
- library "libstlport_shared.so" not found with 6.0.x sdks HOT 6
- Remove USE_CREDENTIALS from timodule.xml
- no compile sdK 6.1.1 HOT 10
- Not support for Titanium sdk 6.3.0 ? HOT 2
- Failed to package application running version 1.6 and with titanium sdk 6.1.3
- Using Titanium SDK 7.0.0 GA and module version 2.0
- Support for Android O
- Android O crash
- Android notification does not appear in the android device notification center if the android:targetSdkVersion="26" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcmpush.