Giter VIP home page Giter VIP logo

mobile-messaging-sdk-android's Introduction

Mobile Messaging SDK for Android

Download License

Mobile Messaging SDK is designed and developed to easily enable push notification channel in your mobile application. In almost no time of implementation you get push notification in your application and access to the features of Infobip Mobile Apps Messaging. The document describes library integration steps. Additional information can be found in our Wiki.

Requirements

  • Android Studio
  • API Level: 14 (Android 4.0 - Ice Cream Sandwich)

Quick start guide

  1. Make sure to setup application at Infobip portal, if you haven't already.

  2. Add dependencies to app/build.gradle

    dependencies {
        ...
        implementation ('org.infobip.mobile.messaging.api:infobip-mobile-messaging-android-sdk:2.0.3@aar') {
            transitive = true
        }
    }
    Gradle dependencies
  3. Add Firebase Sender ID and Infobip Application Code obtained in step 1 to values/strings.xml

    <resources>
        <string name="google_app_id">SENDER ID</string>
        <string name="infobip_application_code">APPLICATION CODE</string>
        ...
    </resources>
    String resources Do not add `google_app_id` if you're using Google Services Gradle Plugin and `google-services.json`.
  4. Add code to MainActivity#onCreate

    public class MainActivity extends AppCompatActivity {
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
    
            new MobileMessaging
                    .Builder(getApplication())
                    .build();
        }
    }
    String resources

NEXT STEPS: User profile


Notes

  1. All required manifest components are merged to application manifest automatically by manifest merger. Please include push-related components to manifest manually if manifest merger was disabled.
  2. MobileMessaging library has geofencing service disabled by default. In order to opt-in the service, follow this guide.
  3. Keep in mind that some proprietary android versions may restrict network traffic for your app. It may in turn affect delivery of push notifications.

If you have any questions or suggestions, feel free to send an email to [email protected] or create an issue.

mobile-messaging-sdk-android's People

Contributors

kas-kad avatar mstipanov avatar riskpp avatar stanislavin avatar tjuric avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.