Esempio n. 1
0
        protected internal override void onCreate(Bundle savedInstanceState)
        {
            base.onCreate(savedInstanceState);
            ContentView     = R.layout.activity_main;
            currentActivity = this;

            // Enable Logging below to debug issues. (LogCat level, Visual level);
            // OneSignal.setLogLevel(OneSignal.LOG_LEVEL.DEBUG, OneSignal.LOG_LEVEL.DEBUG);

            // Pass in your app's Context, Google Project number, OneSignal App ID, and a NotificationOpenedHandler
            OneSignal.init(this, "703322744261", "5eb5a37e-b458-11e3-ac11-000c2940e62c", new ExampleNotificationOpenedHandler(this, this));
        }
Esempio n. 2
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));
        }