pushy / pushy-cordova

The official Pushy SDK for Cordova apps.
Apache License 2.0
8 stars 17 forks source link

Android pushes is not coming to device #24

Closed CrackerakiUA closed 4 years ago

CrackerakiUA commented 4 years ago

With latest version of pushy, I have ios release which works smoothly and android which don't receive pushes. Register device works, Pushy.listen function exists and called normally. What can we do about that, how can we debug that?

pushy commented 4 years ago

Hi @CrackerakiUA, If you could please provide the following information about the device experiencing this issue, that would be great:

1) Device manufacturer 2) Device model name 3) Android OS version

dmaksiuta commented 4 years ago

@pushy-me

  1. Xiaomi
  2. Redmi 4X
  3. Android 7.1.2
CrackerakiUA commented 4 years ago
  1. blackview
  2. BV9000 pro
  3. 8.1.0
Kondruk commented 4 years ago

@pushy-me Pushy working only at background. But if I want to turn off the app the Pushy isn't sending

  1. Xiaomi
  2. Mi 9t ( K20)
  3. 10 QKQ1.190825.002
pushy commented 4 years ago

Chinese-based devices such as Huawei and Xiaomi may not receive notifications after your app is swiped away from the recent apps menu, goes to background, or after a device reboot due to custom power saving features which affect Firebase Cloud Messaging as well.

Most notably, Chinese devices from the following manufacturers include custom power-saving restrictions which may hinder background notification delivery for your app:

Xiaomi Huawei OnePlus Samsung Oppo Vivo Asus Sony Honor

Read more about this issue: https://dontkillmyapp.com/problem

The recommended solution is to instruct the user to whitelist your app from the respective manufacturer's power saving mechanism in the device settings. The instructions for doing this vary from one manufacturer to another.

Another solution that may work in some cases is to implement our FCM Fallback Delivery feature, which may improve delivery rates to some of these devices by attempting to deliver simultaneously through FCM.

We apologize for this inconvenience introduced by Chinese device manufacturers.

CrackerakiUA commented 4 years ago

@pushy-me can you bring it back? this has nothing to do with devices, on the same device your demo app works correctly and our cordova app is not. Would be nice to have cordova demo app lib

pushy commented 4 years ago

Hi @CrackerakiUA, Sure thing. The issue has been reopened.

We've just published a Cordova demo app: https://github.com/pushy-me/pushy-demo-cordova

Please give it a try and try to reproduce the issue there.

pushy commented 4 years ago

@CrackerakiUA Please let us know if you were able to reproduce the issue in our Cordova demo app. Closing for now.