Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question]: ADB commands for debugging Android push notifications #119

Open
1 task done
tele-bird opened this issue Aug 30, 2024 · 0 comments
Open
1 task done

[question]: ADB commands for debugging Android push notifications #119

tele-bird opened this issue Aug 30, 2024 · 0 comments

Comments

@tele-bird
Copy link

How can we help?

I tried using this command to cold-start my app to simulate the arrival of a push notification from OneSignal, but it doesn't work that same way as when I send it from the portal.

adb shell am start -W -a android.intent.action.VIEW -d "my://my.app/market/home?MarketId=2" com.my.app

The app launches, but it doesn't navigate to the landing page. The same Launch URL works perfectly when I send it through the OneSignal portal, so I conclude that my ADB command is incorrect.

Question 1: How to fix this command to simulate a push notification sent from OneSignal? I can't tell whether it even receives the push notification at all, which leads me to...

Question 2: How to debug push notifications on an Android device that are received when the app is not running?

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant