Expo Push Token in banned countries

  1. SDK Version: 40
  2. Platforms(Android/iOS/web/all): all

My app is targeting some countries that are under the united states sanctions like Syria for example
While firebase push notifications works normally on those countries , Expo is a different story
Expo works like a middleware between your app and Firebase and APNS and that’s the problem , Expo is blocking all requests from those countries which lead to us being unable to get the push notifications token for the device
Any idea about if you can fix that ?

The other problem is that in the case of those countries , the function Notifications.getExpoPushTokenAsync() will throw an exception in the low level code but never returns in the JavaScript level, so my app will keep the loader without being able to notify my client with the error
I have surrounded the code with try/catch , but nothing is caught and the function will never returns ( the stack pointer is stuck in the function not moving to the next line of code )

Thanks in advance

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.