w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Android app pop up when a GCM push notification is received on the device

If I understood correctly, what you want is to start the app directly instead of create the notification.

In order to do that you just need to replace the call to generateNotification() with this code:

Intent LaunchIntent =
getPackageManager().getLaunchIntentForPackage("your.package.name");
startActivity(LaunchIntent);

Is that what you need?





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.