如何使用Nativescript直接从我的Android应用程序打开Goog​​le Play商店

时间:2016-03-29 02:09:00

标签: google-play nativescript

我是Android和Native Script的新手。如何使用Native Script在我的Android应用内打开Goog​​le Play商店。我尝试使用网络视图,但效果很好,但我想在设备中使用Google Play商店应用打开Goog​​le Play商店。

1 个答案:

答案 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"/>