[AC-1644] Push Notification on Android devices are not arriving and cause a Force Close
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2015-08-28T03:21:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | TCSupportTriage |
Reporter | Fouad Kada |
Assignee | Mostafizur Rahman |
Created | 2014-10-15T10:33:48.000+0000 |
Updated | 2016-03-08T07:38:07.000+0000 |
Description
Steps to Reproduce
- Run application on device
- enbale pussh notification by subscribing to channel
- send push notification from server backend using appcelerator's API
- mobile application will display force close
Actual Result
application force close and error is displayed in the studio's console
Expected Result
application does not force close and push notification arrives to device and is displayed in the notification tray
Attachments
error from the studio's console
Hi, Would you please provider us a test case to reproduce your problem. That will be really helpful. Thanks. Regards, Shuo
Hey, I can gladly share code for the titanium part and the wordpress plugin that is calling the notify in order to send push notifications....let me know what is most helpful to you. Regards, Fouad
Maybe the part of titanium that received push notification.
Also would you please give me your app key for this problem, I can check the push notification status from our back end. For security season, you can sent the app key to my email directly. sliang@appcelerator.com
sent
Hi, Tried your code in my environment, can't reproduce your problem. So here is the suggest may help: 1. Try to sent a short payload notification from web console. 2. Try this simple code in your device, make sure it is not device problem.
3.Before run and test your app, clean your project first. 4.Would you please tell me which type of device did you use for the test. I noticed there are 3 android devices subscribed in Channel "aztag_news", did all of them have same problem? Hope this will help. Regard, Shuo
Hey, when i faced this problem i was sending really short messages like "test" or "test push notification". I am testing on a nexus 4 device. One thing i also am facing is that the notification never arrive if the app is not running and when i re open the application it displays a black screen and eventually force closes I also noticed the following in the console
Please try to create new project with my test code, see if it works well in your environment. The [ERROR] : GooglePlayServicesUtil: will not bother the push notification we used as long as you can get device token and subscribe channel.
is there any problems with the push notification service, yesterday i tried it and i received the push notifications while today i am not receiving anything
Hello, Now push notification works as expected and get in due time if the network connection is available. Also application does not crash. *Result:* Issue is not reproducible with latest SDK. *Steps to Test:* 1. Paste your code in app.js file. 2. Add cloud and cloudpush module from tiapp.xml file. 3. Set your API key and project ID to your dashboard project. 4. Run this code with the testing environment. 5. Subscribe and then send push from the dashboard. *Testing Environment:* Command-Line Interface, version 4.1.2, Ti SDK: 4.1.0.GA, Android Version: 4.2.2, 4.4.2, 5.1.0, ti.cloudpush Version: 3.3.8, ti.cloud Version: 3.2.9, Studio Version: 4.1.1 *Test Code*
Thanks