我是Android和Native Script的新手。如何使用Native Script在我的Android应用内打开Google Play商店。我尝试使用网络视图,但效果很好,但我想在设备中使用Google Play商店应用打开Google Play商店。
答案 0 :(得分:-1)
添加权限申请
router.post('/purchaseAdd', function(req, res, next) {
//this will transform the object to a string so you can see all the keys/values
var uploadData = JSON.stringify(req.body);
console.log(uploadData);
}
将代码添加到oncreate方法
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>