Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5678] Android: Receive Notification

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2018-03-31T11:16:11.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labels7.1.0.GA, android
ReporterAndreas Pingas
AssigneeShak Hossain
Created2018-03-26T19:43:30.000+0000
Updated2018-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)

Comments

  1. Sharif AbuDarda 2018-03-26

    Hello, Please share a full reproducible code for us to test. Thanks.
  2. Rene Pot 2018-03-28

    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.
  3. Hans Knöchel 2018-03-31

    Duplicate of MOD-2387, pending pull request, scheduled for the next release.

JSON Source