1
このエラーから私を助けてください。ionicネイティブ+ジオファンス+ iOSエラー:「ロケーションは常に許可されていません」
イオンネイティブ+ geofance +のiOS
私はAndroidのジオフェンスが正常に動作して、イオン性のネイティブとのジオフェンスを取り扱っておりますが、iOSのは私がエラーをエラー与える:を「場所は常に許可されない権限」。
=========================================
この.geofence.initialize()。次に、(データ=> {
console.log('Geofence Plugin Ready');
let fence = {
id : '69ca1b88-6fbe-4e80-a4d4-ff4d3748acdb', //any unique ID
latitude : 21.08328129405459, //
longitude : 72.88010023534298, //
radius : 30,
transitionType : 3,
notification : { //notification settings
id : 11212,//
title : 'Insta Place',
text : 'You are Near the Location.',
icon : 'file://icon.png',
openAppOnClick : true
}
}
// alert(JSON.stringify(fence));
this.geofence.addOrUpdate(fence).then(
(data) => console.log('Geofence added'),
(err) => alert('Geofence failed to add Please Turn On your device location and try again.'+ err)
);
},err => {
alert('Geofence Plugin Not Ready' + JSON.stringify(err));
})
============================
感謝します。私のために
私のために働いてくれてありがとう:) –