Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diagnostics not working correctly in ionic-native #365

Closed
cfjedimaster opened this issue Jul 29, 2016 · 5 comments
Closed

Diagnostics not working correctly in ionic-native #365

cfjedimaster opened this issue Jul 29, 2016 · 5 comments
Labels

Comments

@cfjedimaster
Copy link

This could certainly be my fault, but when I try to use Diagnostics, I get an error. I do have the plugin installed. Here is my code:

constructor(private navCtrl: NavController, platform:Platform) {
this.img = "";
platform.ready().then(() => {

  Diagnostic.isCameraEnabled().then((res) => {
    console.log('diagnostic result', res);
    this.cameraSupported = res;
  }).catch((err) =>  {
    console.log('got an error using diagnostic');
    console.dir(err);
  });

});
}

and when run, I get this in the console:

message: "undefined is not an object (evaluating 'util_1.get(window, pluginObj.pluginRef)[methodName].apply')"

@amuramoto
Copy link
Contributor

This happens because isCameraEnabled() should have been isCameraAvailable(). Same for isBluetoothEnabled(), isLocationEnabled(), and isWifiEnabled(). All are fixed in this PR: #373

@ihadeed
Copy link
Collaborator

ihadeed commented Jul 31, 2016

Should be fixed in next release.

The plugin has both Enabled and Available. However, the Enabled functions are not available on all platforms.

@ihadeed ihadeed added the bug label Jul 31, 2016
@cfjedimaster
Copy link
Author

Query - is there one core version # for Ionic Native?

Also - rough eta on when this will go live?

On Sun, Jul 31, 2016 at 1:43 PM, Ibrahim Hadeed [email protected]
wrote:

Should be fixed in next release.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#365 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAYBvNu0gKuJ3EVNQOfQBbKBu6escwK2ks5qbOzXgaJpZM4JX04w
.

Raymond Camden, Developer Advocate for StrongLoop at IBM

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden

@ihadeed
Copy link
Collaborator

ihadeed commented Aug 1, 2016

Hey Raymond

Yes there's one version
And these changes are live right now in the latest version

On Aug 1, 2016 9:14 AM, "Raymond Camden" [email protected] wrote:

Query - is there one core version # for Ionic Native?

Also - rough eta on when this will go live?

On Sun, Jul 31, 2016 at 1:43 PM, Ibrahim Hadeed [email protected]
wrote:

Should be fixed in next release.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
#365 (comment)
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/AAYBvNu0gKuJ3EVNQOfQBbKBu6escwK2ks5qbOzXgaJpZM4JX04w

.

Raymond Camden, Developer Advocate for StrongLoop at IBM

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#365 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANJ8dHzgp02qMRJAOGILhyVBEIQvPhBjks5qbfE-gaJpZM4JX04w
.

@cfjedimaster
Copy link
Author

Cool. And I was kinda dumb - you can use regular npm commands to find local
vs remote version, and I see the change log too.

On Mon, Aug 1, 2016 at 9:44 AM, Ibrahim Hadeed [email protected]
wrote:

Hey Raymond

Yes there's one version
And these changes are live right now in the latest version

On Aug 1, 2016 9:14 AM, "Raymond Camden" [email protected] wrote:

Query - is there one core version # for Ionic Native?

Also - rough eta on when this will go live?

On Sun, Jul 31, 2016 at 1:43 PM, Ibrahim Hadeed <
[email protected]>
wrote:

Should be fixed in next release.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<

#365 (comment)

,
or mute the thread
<

https://github.com/notifications/unsubscribe-auth/AAYBvNu0gKuJ3EVNQOfQBbKBu6escwK2ks5qbOzXgaJpZM4JX04w

.

Raymond Camden, Developer Advocate for StrongLoop at IBM

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<
#365 (comment)
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/ANJ8dHzgp02qMRJAOGILhyVBEIQvPhBjks5qbfE-gaJpZM4JX04w

.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#365 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAYBvGUpJvIdEoKQO1NH75NL3m5fbVIJks5qbgZCgaJpZM4JX04w
.

Raymond Camden, Developer Advocate for StrongLoop at IBM

Email : [email protected]
Blog : www.raymondcamden.com
Twitter: raymondcamden

@mlynch mlynch closed this as completed Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants