Пример #1
0
        protected internal override void onCreate(Bundle savedInstanceState)
        {
            base.onCreate(savedInstanceState);
            ContentView = R.layout.activity_main;

            currentActivity = this;

            // NOTE: Please update your Google Project number and OneSignal id to yours below.
            // Pass in your app's Context, Google Project number, your OneSignal App ID, and NotificationOpenedHandler
            OneSignal.init(this, "703322744261", "b2f7f966-d8cc-11e4-bed1-df8f05be55ba", new ExampleNotificationOpenedHandler(this, this));

            OneSignal.idsAvailable(new IdsAvailableHandlerAnonymousInnerClassHelper(this));
        }
Пример #2
0
 // activity_main.xml defines the link to this method from the button.
 public virtual void getIds(View view)
 {
     OneSignal.idsAvailable(new IdsAvailableHandlerAnonymousInnerClassHelper(this));
 }