The Pushwoosh.pushReceivedCallback is designed to be triggered for incoming notifications while your application is running in the foreground. If you observe that it only works when the app is closed or in the background, this typically points to an issue with the specific implementation within your project.
To troubleshoot this, we recommend taking the following steps:
Test the Official Example: The most effective way to isolate the problem is to build and run the example project provided in the official Pushwoosh Capacitor plugin repository. This helps determine if the issue is with your code or the plugin environment.
Compare Your Code: If the callback functions correctly in the example project, carefully compare its integration code against your own. Pay close attention to how the plugin is initialized and where the callback is registered in your app's code.
Comments
0 comments
Please sign in to leave a comment.