Vote count:
0
How do we create a notification that lands on a different page internal asset
.
Code
Intent launchActivity = new Intent(ctx, CordovaApp.class);
launchActivity.putExtra("heading",newsHeader);
launchActivity.putExtra("content",newsText);
PendingIntent pi = PendingIntent.getActivity(ctx,0, launchActivity,0);
//Create notification from the Pending Intent
By default this loads file:///android_asset/www/index.html
on click of notification.
But I want to load another HTML of path
file:///android_asset/www/templates/notification.html
How do I achieve this?
asked 1 min ago
Android:Load Custom URL on Notification Click
Aucun commentaire:
Enregistrer un commentaire