-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cannot map Q.Promise objects needed for iBeacon plugin #241
Comments
Hey there, Thanks for contributing to Your implementation is invoking the Reason: that's what the I just had a look at the docs for that function here. The iBeacon plugin is relatively odd. They return a We can do one of the following:
I would give the first option a shot first, if that doesn't work well in all scenarios then we can look into modifying the |
I just tried However, in my test page, I display the results of the cordova calls. This does not work immediately, since change detection in Angular 2 gets not triggered. So I would really appreciate, if you could add a new option to the |
I added a new option Could you check the implementation at https://github.com/Ritzlgrmft/ionic-native/blob/master/src/plugins/plugin.ts#L99? If it is fine for you, I will merge it as soon as the plugin is working. |
And another question: for
Using
The second line is working, but the first line not. For this, I assume I have to define the BeaconRegion also in some way. But I do not know, how? |
Hey @Ritzlgrmft Please see this: #270 |
I am trying to create the definition for the iBeacon plugin (see #223). But unfortunately, it doesn't work as expected. As far as I can see, the native method of the plugin gets called, returns also a result, but the promise in my calling code is never resolved.
My plugin definition looks like:
My call is:
Neither
catch
northen
get called.My suspicion is that the problem is that the iBeacon plugin maps the result in
Q.Promise
objects. And that there the mapping inionic-native
does not work. But unfortunately, I do not know how to fix it.The text was updated successfully, but these errors were encountered: