Skip to content

ayongw/nativescript-jiguang-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NativeScript Jiguang push plugin apple android

(Optional) Prerequisites / Requirements

NO

Installation

$ tns plugin add nativescript-urlhandler

need to config the android receiver

<application>
    <!--JPush api核心消息接受器-->
    <receiver android:name="com.github.ayongw.jpushreceiver.MessageCenterJPushApiReceiver"
              android:exported="false"
              android:enabled="true">
        <intent-filter>
            <action android:name="cn.jpush.android.intent.REGISTRATION" /> <!--Required  用户注册SDK的intent-->
            <action android:name="cn.jpush.android.intent.MESSAGE_RECEIVED" /> <!--Required  用户接收SDK消息的intent-->
            <action android:name="cn.jpush.android.intent.NOTIFICATION_RECEIVED" /> <!--Required  用户接收SDK通知栏信息的intent-->
            <action android:name="cn.jpush.android.intent.NOTIFICATION_OPENED" /> <!--Required  用户打开自定义通知栏的intent-->
            <action android:name="cn.jpush.android.intent.CONNECTION" /><!-- 接收网络变化 连接/断开 since 1.6.3 -->

            <category android:name="__PACKAGE__" />
        </intent-filter>
    </receiver>

    <!--用于接收种操作返回-->
    <receiver android:name="com.github.ayongw.jpushreceiver.MessageCenterJPushOperateMessageReceiver">
        <intent-filter>
            <action android:name="cn.jpush.android.intent.RECEIVE_MESSAGE" />

            <category android:name="__PACKAGE__" />
        </intent-filter>
    </receiver>
</application>

Usage

Describe any usage specifics for your plugin. Give examples for Android, iOS, Angular if needed. See nativescript-drop-down for example.

Usage code snippets here

API

Describe your plugin methods and properties here. See nativescript-feedback for example.

Property Default Description
some property property default value property description, default values, etc..
another property property default value property description, default values, etc..

License

Apache License Version 2.0, January 2004

About

demo of jiguang push

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published