示例#1
0
 // onPause and onResume hooks are required so OneSignal knows when to create a notification and when to just call your callback and playtime for segmentation.
 // To save on adding these hooks to every Activity in your app it might be worth extending android.app.Activity to include this logic if you have many Activity classes in your App.
 // Anther option is to use this library https://github.com/BoD/android-activitylifecyclecallbacks-compat
 protected internal override void onPause()
 {
     base.onPause();
     OneSignal.onPaused();
 }