[AC-5678] Android: Receive Notification
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2018-03-31T11:16:11.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 7.1.0.GA, android |
Reporter | Andreas Pingas |
Assignee | Shak Hossain |
Created | 2018-03-26T19:43:30.000+0000 |
Updated | 2018-03-31T11:16:11.000+0000 |
Description
When the app is running the notification appear properly. When the app is not running, it does not receive notification.
The following warn appears every time a notification is sent:
[WARN] : IInputConnectionWrapper: getExtractedText on inactive InputConnection
[WARN] : IInputConnectionWrapper: getTextBeforeCursor on inactive InputConnection
[WARN] : W/System.err: java.io.FileNotFoundException: Resources/sound/default
[WARN] : W/System.err: at android.content.res.AssetManager.openAssetFd(Native Method)
[WARN] : W/System.err: at android.content.res.AssetManager.openFd(AssetManager.java:367)
[WARN] : W/System.err: at com.appcelerator.aps.APSCloudPush.getAndTransferFile(APSCloudPush.java:531)
[WARN] : W/System.err: at com.appcelerator.aps.APSCloudPush.showTrayNotification(APSCloudPush.java:443)
[WARN] : W/System.err: at com.appcelerator.aps.APSCloudPush.receivePayload(APSCloudPush.java:269)
[WARN] : W/System.err: at com.appcelerator.aps.GCMReceiver.onReceive(GCMReceiver.java:30)
[WARN] : W/System.err: at android.app.ActivityThread.handleReceiver(ActivityThread.java:3089)
[WARN] : W/System.err: at android.app.ActivityThread.-wrap18(ActivityThread.java)
[WARN] : W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1618)
[WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:102)
[WARN] : W/System.err: at android.os.Looper.loop(Looper.java:163)
[WARN] : W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6321)
[WARN] : W/System.err: at java.lang.reflect.Method.invoke(Native Method)
[WARN] : W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
[WARN] : W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:770)
Hello, Please share a full reproducible code for us to test. Thanks.
Hi [~andreas.pingas], what is your environment/configuration. What do you use for push notifications? And as [~sdarda] mentioned can you please give us sample code? We'll need to have more info for us to help you.
Duplicate of MOD-2387, pending pull request, scheduled for the next release.