[AC-6134] Notification Bug on SDK 8.0.0
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Hold |
Resolution Date | 2019-02-20T17:05:50.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android |
Reporter | Andreas Pingas |
Assignee | Shak Hossain |
Created | 2019-02-09T09:24:13.000+0000 |
Updated | 2019-02-20T17:05:51.000+0000 |
Description
When the app is not running and the user receives a notification, the Listener trayClickLaunchedApp is not fired.
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:394)
[WARN] : W/System.err: at com.appcelerator.aps.APSCloudPush.getAndTransferFile(APSCloudPush.java:617)
[WARN] : W/System.err: at com.appcelerator.aps.APSCloudPush.showTrayNotification(APSCloudPush.java:489)
[WARN] : W/System.err: at com.appcelerator.aps.APSCloudPush.receivePayload(APSCloudPush.java:306)
[WARN] : W/System.err: at com.appcelerator.aps.GCMReceiver.onReceive(GCMReceiver.java:30)
[WARN] : W/System.err: at android.app.ActivityThread.handleReceiver(ActivityThread.java:3291)
[WARN] : W/System.err: at android.app.ActivityThread.-wrap17(Unknown Source:0)
[WARN] : W/System.err: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1706)
[WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:105)
[WARN] : W/System.err: at android.os.Looper.loop(Looper.java:173)
[WARN] : W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6698)
[WARN] : W/System.err: at java.lang.reflect.Method.invoke(Native Method)
[WARN] : W/System.err: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
[WARN] : W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
[ERROR] : EnhancedIntentService: binding to the service failed
Hello, Can you please share the code that you are using for the push receive? Thanks.
Hello [~andreas.pingas], Are you sending a sound with your push notification, did you app have the sound resource inside? what is your cloudpush version? Can you try with the below code, put your credentials in the login. Thanks.
I use the Android sdk build-tools 28.0.3, to ti.cloudpush 5.2.0, android SDK 28, sound is set to default. The example you have send seems that its always working. My example, on the other hand is not working properly. The CloudPush.retrieveDeviceToken is fired and then i can send one notification only. When the notification reaches the device then the following issue arises and then the device stops receiving notifications. The CloudPush.retrieveDeviceToken process has to take place again in order to start receiving. [ERROR] : EnhancedIntentService: binding to the service failed I will check if any of the following makes an issue and i will let you know. firebase.core firebase.analytics ti.playservices ti.admob
The bug starts with the var CloudPush = require('ti.cloudpush'); It does not mean that the GooglePlayServices are loading. They might load a few seconds later. If the commands load οne after another all the commands the most probable is that this would not work. :) A temporary solution i have found is the following and always works:
Hello [~andreas.pingas], You can look into another report of I believe the similar issue TIMOB-18125.