Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Open Page in PCL when Local notification is clicked

$
0
0

Hi,

I am using below code in my Droid project within my PCL solution:

global::Android.Net.Uri uri = global::Android.Net.Uri.Parse("android.resource://" + this.PackageName + "/Raw/" + Resource.Raw.AthanAffasi);

Notification.Builder builder = new Notification.Builder(this)
    .SetSound(uri)
    .SetSmallIcon(Resource.Drawable.icon)
    .SetLargeIcon(Resource.Drawable.icon)
    .SetAutoCancel(true)
    .SetContentTitle("حان الآن موعد أذان الفجر") 
    .SetVibrate(new long[] { 1000, 1000 })
    .SetContentText("نسألكم الدعاء");

NotificationManager notificationManager = (NotificationManager)GetSystemService(Context.NotificationService);
notificationManager.Notify(60000, builder.Build());

I want to know how can i open a page named MyPage in my PCL project when the notification is clicked?

Thanks,
Jassim


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>