arleyandrada / PushClient

FREE and Open Source - Titanium PushClient Module
Other
44 stars 17 forks source link

Background Notifications #164

Open Wingee opened 7 years ago

Wingee commented 7 years ago

I'm using Titanium SDK Version 6.1.1.GA with PushClient 1.21 and although the callback work when the app is in the background I don't see a push notification on an Android device.

I've tried multiple devices, and when the app is in the background no push notification appears at the top of the Android device.

Any ideas?

Wingee commented 7 years ago

I've noticed an error during the build it says:

GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

Could this be related?

Lenndev commented 7 years ago

This error occurs with multiple push modules. it seems to be an obsolete error message generated by google play services and can be ignored... according to most of the devs of the other modules.

Lenndev commented 7 years ago

The module works fine here, opening app in all cases, even if app is completely closed. But i am wondering how i can check if app was in background... i am testing with FCM, but in the end the API will send push notifications. But in the data i receive on success, there is no inBackground flag or something... Any ideas?

EDIT: nvm, i found out the mode property (1,2,3...) tells this.

jcsomac commented 6 years ago

When the app is completly closed i dont receive the notification. But whe i open the app and send some push... i reveive it.. What can be happening ?

cerw commented 6 years ago

What is the recommended push module for android?