Closed ek-thaviti closed 7 years ago
I need more details. Code, logs, environment, versions, etc?
On 29 Dec 2016 12:24, "edukondalu123" notifications@github.com wrote:
Expected behaviour
I have installed the plugin cordova-plugin-sim. When i checked this window.plugins.sim.getSimInfo, it's not triggering at all. The code is not working after this line Actual behaviour
Tell us what happens instead. Provide a log message if relevant I'm seeing this behaviour on
Remove this hint: these checkboxes can be checked like this: [x]
- iOS device
- iOS simulator
- Android device
- Android emulator
I am using
- cordova
- ionic
- PhoneGap
- PhoneGap Developer App
- Intel XDK
- Intel App Preview
- Telerik
- Other:
Hardware models
Example: Samsung Galaxy S6, iPhone 6s OS versions
Example: Android 4.4.2, iOS 9.2 I've checked these
- It happens on a fresh Cordova CLI project as well.
- I'm waiting for deviceready to fire.
- My JavaScript has no errors (window.onerror catches nothing).
- I'm using the latest cordova library, Android SDK, Xcode, etc.
So how can we reproduce this?
Provide the used components versions (cordova, ionic, etc).
Provide the steps to reproduce the issue.
Provide files, sources if available.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pbakondy/cordova-plugin-sim/issues/49, or mute the thread https://github.com/notifications/unsubscribe-auth/AAej2dH1_6aVEwUQjBODzpZkxbqmv1kEks5rM5hXgaJpZM4LXhKE .
Thanks for reply... My phonegap version is 6.2.0
Code: document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { window.plugins.sim.getSimInfo(successCallback, errorCallback); } function successCallback(result) { alert(JSON.stringify(result)); }
function errorCallback(error) { alert(JSON.stringify(error)); }
do you have any JS error? where are you running this code? android phone?
On 29 Dec 2016 13:18, "edukondalu123" notifications@github.com wrote:
Thanks for reply... My phonegap version is 6.2.0
Code: document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { window.plugins.sim.getSimInfo(successCallback, errorCallback); } function successCallback(result) { alert(JSON.stringify(result)); }
function errorCallback(error) { alert(JSON.stringify(error)); }
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pbakondy/cordova-plugin-sim/issues/49#issuecomment-269622493, or mute the thread https://github.com/notifications/unsubscribe-auth/AAej2SyZyZ1T51myiHKz867C3DynPLgbks5rM6ULgaJpZM4LXhKE .
I though no JS error. Yes running in android phone using phonegap develope app.
If i have JS error, it won't work for this sharing plugin below
document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { window.plugins.socialsharing.share("title", null, null, "url_link"); //window.plugins.sim.getSimInfo(successCallback, errorCallback); }
But it's working for sharing pluing.
Can u please tell why it is not working?
yes, check this answer: https://github.com/pbakondy/cordova-plugin-sim/issues/12#issuecomment-173531191
Thanks a bunch @pbakondy really. You solved my issue. Yes it is not working with phonegap developer app then i checked in my real android machine. It's working fine. Thank you so much...
Same issue happend in ios 10.3 above. Checked in real device. May i get your attention @pbakondy Thank you...
Hi, Please I have the same issue with cordova-plugin-sim. In the apk generate and deploy in my phone is the not working. I'm seeing this behaviour on
This is the JascriptCode
Sorry this is JavaScript Code
var app = { // Application Constructor initialize: function() { this.bindEvents(); }, bindEvents: function() { document.addEventListener('deviceready', this.onDeviceReady, false); }, onDeviceReady: function() { app.receivedEvent('deviceready'); },
receivedEvent: function(id) {
window.plugins.sim.getSimInfo(successCallback, errorCallback); //alert('Received Event= ' + id);
},
successCallback: function(result) { var doc = document.getElementById("simInfo"); doc.innerHTML=JSON.stringify(result); alert(JSON.stringify(result));
}, errorCallback: function(error) {
var doc = document.getElementById("simInfo");
alert(JSON.stringify(error));
}
I have Urgent Project with PhoneGap Cordova that request an access to SIM Card. Please help
Thank
I have installed the plugin cordova-plugin-sim. When i checked this window.plugins.sim.getSimInfo(successCallback, errorCallback), it's not triggering at all. The code is not working after this line
I'm seeing this behaviour on
I am using
Hardware models
Example: Coolpad Note 3
OS versions
Example: Android 5.1
I've checked these
deviceready
to fire.window.onerror
catches nothing).