Created
May 10, 2017 21:22
-
-
Save jngnyc/af378624a0aa524a9883559afdef2f49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.chartiq.sampleapp.instabot_with_thirdparty_push_provider; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import com.rokolabs.sdk.RokoMobi; | |
import com.urbanairship.UAirship; | |
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
// init Mobi SDK | |
RokoMobi.start(this); | |
// init Urban Airship SDK | |
UAirship.takeOff(this.getApplication(), new UAirship.OnReadyCallback() { | |
@Override | |
public void onAirshipReady(UAirship airship) { | |
// Enable user notifications | |
airship.getPushManager().setUserNotificationsEnabled(true); | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment