All Projects → ParadiseHell → mipush-cordova-plugin

ParadiseHell / mipush-cordova-plugin

Licence: other
cordova小米推送插件

Programming Languages

objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to mipush-cordova-plugin

haoshiyou-client
Source code for haoshiyou clients (Hybrid HTML5 App)
Stars: ✭ 14 (-36.36%)
Mutual labels:  cordova
cordova-plugin-1password
Plugin for adding 1Password App Extension into Cordova/PhoneGap Apps
Stars: ✭ 12 (-45.45%)
Mutual labels:  cordova
maji
Maji is a framework to build great hybrid mobile apps.
Stars: ✭ 18 (-18.18%)
Mutual labels:  cordova
capacitor-rate-app
Let users rate your app using native review app dialog for both Android and iOS.
Stars: ✭ 88 (+300%)
Mutual labels:  cordova
framework7-plugin-keypad
Keypad plugin extends Framework7 with additional custom keyboards
Stars: ✭ 72 (+227.27%)
Mutual labels:  cordova
SwiftJSBridge
SwiftJSBridge is a handy JavaScript Bridge, written in Swift, support WKWebView and UIWebView
Stars: ✭ 29 (+31.82%)
Mutual labels:  cordova
Cordova Plugins
Apache Cordova
Stars: ✭ 242 (+1000%)
Mutual labels:  cordova
JiaCordova
在Cordova及插件的基础上封装一些常用的功能,不断更新中
Stars: ✭ 35 (+59.09%)
Mutual labels:  cordova
cordova-plugin-battery-status
Apache Cordova Plugin battery-status
Stars: ✭ 94 (+327.27%)
Mutual labels:  cordova
cordova-plugin-opentok
Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
Stars: ✭ 30 (+36.36%)
Mutual labels:  cordova
cordova-fonts
Cordova plugin for enumerating fonts on a mobile device
Stars: ✭ 14 (-36.36%)
Mutual labels:  cordova
cordova-plugin-android-window-background
Simple Cordova plugin to set Android window background on start-up 🎨 🍭
Stars: ✭ 15 (-31.82%)
Mutual labels:  cordova
framework7-template-split-view
Deprecated! Framework7 split view starter app template
Stars: ✭ 19 (-13.64%)
Mutual labels:  cordova
ILIAS-Pegasus
An ILIAS Companion App
Stars: ✭ 19 (-13.64%)
Mutual labels:  cordova
ionic4-image-crop-upload
Ionic 4, Angular 7 and Cordova Crop and Upload Image
Stars: ✭ 16 (-27.27%)
Mutual labels:  cordova
Swiped Events
Adds `swiped` events to the DOM in 0.7k of pure JavaScript
Stars: ✭ 249 (+1031.82%)
Mutual labels:  cordova
framework7-template-react
Deprecated! Framework7 React starter app template with hot-reload & css extraction
Stars: ✭ 105 (+377.27%)
Mutual labels:  cordova
cordova-plugin-advanced-imagepicker
Cordova Plugin for an advanced (multiple) ImagePicker
Stars: ✭ 23 (+4.55%)
Mutual labels:  cordova
docker-cordova
🗿 Docker image for Cordova (with Node.js & Android)
Stars: ✭ 72 (+227.27%)
Mutual labels:  cordova
Dianoia-app
Mobile (Ionic 3 - Angular 4) app about non-pharmaceutical activities and information for people with dementia.
Stars: ✭ 13 (-40.91%)
Mutual labels:  cordova

Cordova MiPush Plugin

release platforms

支持Android、IOS的Cordova小米推送插件

集成步骤

  • 通过 Cordova Plugins 安装,要求 Cordova CLI 5.0+:

      cordova plugin add cordova-plugin-mipush --variable MI_PUSH_APP_KEY=your_mipush_appkey --variable MI_PUSH_APP_ID=your_mipush_appid --variable MI_PUSH_APP_IOS_ID=your_mipush_appid --variable MI_PUSH_APP_IOS_KEY=your_mipush_appkey
    
  • 通过Url安装:

      cordova plugin add https://github.com/wenin819/cordova-plugin-mipush.git --variable MI_PUSH_APP_KEY=your_mipush_appkey --variable MI_PUSH_APP_ID=your_mipush_appid --variable MI_PUSH_APP_IOS_ID=your_mipush_appid --variable MI_PUSH_APP_IOS_KEY=your_mipush_appkey
    
  • 或者下载本地安装

      cordova plugin add Your_Plugin_Path --variable MI_PUSH_APP_KEY=your_mipush_appkey --variable MI_PUSH_APP_ID=your_mipush_appid --variable MI_PUSH_APP_IOS_ID=your_mipush_appid --variable MI_PUSH_APP_IOS_KEY=your_mipush_appkey
    

Demo

在插件项目的sample文件夹中包含一个简单的demo,若想参考,具体方法:

	sample/index.htm---->you_project_path/www/index.html
	sample/css/*---->you_project_path/www/css/
	sample/js/*---->you_project_path/www/js/

关于 PhoneGap build 云服务

该项目基于 Cordova 实现,目前无法使用 PhoneGap build 云服务进行打包,建议使用本地环境进行打包。

API 说明

插件的 API 在 MiPush.js 文件中,该文件的具体位置如下:

Android

[Project]/assets/www/plugins/cordova-plugin-mipush/www

具体的 API 请参考:

常见问题

若要使用 CLI 来编译项目,注意应使用 cordova compile 而不是 cordova build 命令,因为如果修改了插件安装时默认写入到 AndroidManifest.xml 中的代码,cordova build 可能会导致对 AndroidManifest.xml 的修改。 Cordova CLI 的具体用法可参考 Cordova CLI 官方文档

Android

  • Eclipse 中 import PhoneGap 工程之后出现:Type CallbackContext cannot be resolved to a type

    解决方案:Eclipse 中右键单击工程名,Build Path -> Config Build Path -> Projects -> 选中工程名称 -> CordovaLib -> 点击 add。

截图

感谢

更多

  • 本项目参考极光推送cordova插件编写
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].