小编use*_*121的帖子

状态栏隐藏Cordova

如果我删除状态栏,每次打开键盘(或通知到达)都会出现错误.

   App.run(function($ionicPlatform) {
        $ionicPlatform.ready(function() {
          if(window.StatusBar) {     
            StatusBar.hide();
          }
        });
    });
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述 此搜索

有什么建议吗?谢谢!

android ios angularjs cordova ionic-framework

6
推荐指数
1
解决办法
5355
查看次数

NFC 读取器阿帕奇·科尔多瓦

我想使用phonegap nfc读取nfc卡(教程phonegap)但该事件未启动

这是index.js的代码

 onDeviceReady: function() {
     app.receivedEvent('deviceready');

// Read NDEF formatted NFC Tags
nfc.addNdefListener (
    function (nfcEvent) {
        var tag = nfcEvent.tag,
            ndefMessage = tag.ndefMessage;

        // dump the raw json of the message
        // note: real code will need to decode
        // the payload from each record
        alert(JSON.stringify(ndefMessage));

        // assuming the first record in the message has
        // a payload that can be converted to a string.
        alert(nfc.bytesToString(ndefMessage[0].payload).substring(3));
    },
    function () { // success callback
        alert("Waiting for NDEF …
Run Code Online (Sandbox Code Playgroud)

javascript android phonegap-plugins angularjs cordova

2
推荐指数
1
解决办法
5405
查看次数