-
Notifications
You must be signed in to change notification settings - Fork 5
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
Ability to subscribe on application handleOpenURL out of appDelegate.m #14
Comments
I have actually never used Cordova so I am not sure how that works. First of all, I am not even sure wether or not AppDelegate events are also sent through the NSNotificationCenter, but I have never heard of it before at least. The delegate callback that you will receive is application:openURL:sourceApplication:annotation: and that is sent to the AppDelegate. I am sorry that I can't help you much, but I am sure that there must be a way to get the url when using Cordova. Add an NSLog() in the handleOpenURL to see if it is even called or not. |
It is not depends on type of your application.
for example into ViewController method: Anyway, I saw, handleOpenURL was called:
But |
Oh, well then it should be working. Did you receive the
callback? If so, did you also remember to set the delegate on the button (unless you have not already set the defaultButtonDelegate on the manager) ? |
I received I set up defaultButtonDelegate on the manager. In case I added into appDelegate, it works:
In case I removed
It does not work. This is fork from yours example project: |
Very interesting.. I will take a look at this as soon as I have some spare time. In the meantime, can do you think you can give me the error code that is sent in the didGrabButton callback. This way I might be able to see what the problem is without running your code. |
I have checked it again, now it works... I will tune an iOS flic plugin https://github.com/dukhanov/Cordova-Flic for cordova and I will release it asap. Thanks a lot. |
Hello,
Will this work, in case I subscribe on event "handleOpenURL", outside of appDelegate.m?
For example, I can subscribe on event in cordova plugin:
FlicPlugin.m:
I have done it, and:
Have you tried to subscribe on event "handleOpenURL" outside of appDelegate.m?
The text was updated successfully, but these errors were encountered: