蒲公英開發者服務平臺致力于提供優秀的開發者上下游服務,解決開發者在整個開發者生命周期中的各個需求。
掃碼關注
蒲公英微信公眾號
獲取最新動態、官方福利、優惠活動等信息
蒲公英文檔中心
App Key:唯一標識一個應用的 Key,在蒲公英上的每一個 App 都有一個唯一的 App Key,開發者可以在應用管理頁面首頁查看。
cordova plugin add pgyerplugin --variable ANDROID_APPID=[Android App Key] --variable IOS_APPID=[iOS App Key]
cordova.exec(success, error, 'PgyerPlugin', 'crashRegister', [""]);
function success(msg) {
alert(msg);
}
function error(msg) {
alert('失敗: ' + msg);
}
cordova.exec(success, error, 'PgyerPlugin', 'showFeedback', [""]);
cordova.exec(success, error, 'PgyerPlugin', 'checkUpdate', [""]);
更多高級用法Android端修改PgyerPlugin.java文件,iOS端修改PgyerPlugin.h和PgyerPlugin.m文件,具體修改方式參考 新版本Android SDK 集成指南 和 iOS SDK 集成指南。
下載Demo工程
支付成功
蒲公英 VIP 用戶群
請打開微信 — 掃一掃,加入群聊