This file contains hidden or 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
<repositories> | |
<repository> | |
<id>jitpack.io</id> | |
<url>https://jitpack.io</url> | |
</repository> | |
</repositories> | |
<dependency> | |
<groupId>com.pushlink</groupId> | |
<artifactId>pushlink-android</artifactId> |
This file contains hidden or 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
//C# for MonoDroid | |
using Com.Pushlink.Android; | |
... | |
PushLink.Start(this, Resource.Drawable.Icon, "yourApiKey", "yourDeviceID"); |
This file contains hidden or 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
//Don't forget to declare it in AndroidManifest.xml <application android:name=".PushLinkSetup" ... > | |
public class PushLinkSetup extends android.app.Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
PushLink.start(this, R.mipmap.ic_launcher, "yourApiKey", "yourDeviceID"); | |
//you can use R.drawable.icon for older sdks | |
} | |
} |
NewerOlder