Closed sharad-paghadal closed 6 years ago
Hi,
I am really facing this issue for X-Code 9 and later with swift 4.0 please let me know how can my application will be called from javascript?
Waiting for your soon reply. Sandy Dhumale
Dear,
Sorry I am very busy, so dont help you right now. I will back soon to reply you.
Thanks, Sua
On Thu, Feb 1, 2018 at 3:29 PM, sandydhumale notifications@github.com wrote:
Hi,
I really facing this issue for X-Code 9 and later with swift 4.0 please let me know how can my application will be called from javascript?
Waiting for your soon reply. Sandy Dhumale
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sua8051/JavaScriptInterface/issues/7#issuecomment-362193638, or mute the thread https://github.com/notifications/unsubscribe-auth/ANiNDN1FlCFHkW5Ci68OdQSIezwwGYWLks5tQXXMgaJpZM4RqwqS .
I m so happy to see your precious reply. Please help me dear it's my project release date.. Waiting for your reply.
On Feb 2, 2018 12:35 PM, "Sua Le" notifications@github.com wrote:
Dear,
Sorry I am very busy, so dont help you right now. I will back soon to reply you.
Thanks, Sua
On Thu, Feb 1, 2018 at 3:29 PM, sandydhumale notifications@github.com wrote:
Hi,
I really facing this issue for X-Code 9 and later with swift 4.0 please let me know how can my application will be called from javascript?
Waiting for your soon reply. Sandy Dhumale
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sua8051/JavaScriptInterface/issues/7# issuecomment-362193638, or mute the thread https://github.com/notifications/unsubscribe-auth/ ANiNDN1FlCFHkW5Ci68OdQSIezwwGYWLks5tQXXMgaJpZM4RqwqS .
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sua8051/JavaScriptInterface/issues/7#issuecomment-362504215, or mute the thread https://github.com/notifications/unsubscribe-auth/Acgbu9zfr98G3AGorWGItaEkoSJ4AeWEks5tQrPEgaJpZM4RqwqS .
Yes please have some time to fix this. Actually if I'm cloning this project, it's working excellent but if I'm following same steps to implement onto my project, It's not working.
Fixes an issue in that was preventing didCreateJavaScriptContext
from
being called which resulted in the JS API never being added to the
web view's JS context. This only became an issue after migrating to
Swift 4 since Swift 4 requires explicit @objc annotations.
In UIWebViewExt.swift:
@objc func webView(_ webView: AnyObject, didCreateJavaScriptContext context: JSContext, forFrame frame: AnyObject) {
thanks @thanhnt245, it works.
Hi, It's been very long that I have been waiting for your precious reply, Can you please help us that how do we make this project work in X-Code 9 and later with Swift 4.
hello @sandydhumale , please have a look at @thanhnt245 's reply.
Fixes an issue in that was preventing didCreateJavaScriptContext from being called which resulted in the JS API never being added to the web view's JS context. This only became an issue after migrating to Swift 4 since Swift 4 requires explicit @objc annotations. In UIWebViewExt.swift: @objc func webView(_ webView: AnyObject, didCreateJavaScriptContext context: JSContext, forFrame frame: AnyObject) {
Thanks Guys,
Truly its working now.
On Wed, Jun 6, 2018 at 12:25 PM, Sharad Paghadal notifications@github.com wrote:
hello @sandydhumale https://github.com/sandydhumale , please have a look at @thanhnt245 https://github.com/thanhnt245 's reply.
Fixes an issue in that was preventing didCreateJavaScriptContext from being called which resulted in the JS API never being added to the web view's JS context. This only became an issue after migrating to Swift 4 since Swift 4 requires explicit @objc https://github.com/objc annotations. In UIWebViewExt.swift: @objc https://github.com/objc func webView(_ webView: AnyObject, didCreateJavaScriptContext context: JSContext, forFrame frame: AnyObject) {
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sua8051/JavaScriptInterface/issues/7#issuecomment-394960802, or mute the thread https://github.com/notifications/unsubscribe-auth/AcgbuxKRj9KGLeizrZ67tuEzjsv81Ybqks5t53zcgaJpZM4RqwqS .
-- Thanks and Regards, Sandeep Dhumale 9902383734
Hi Guys,
After i made the suggested changes now my Webpage is not getting loaded the web page can you guys help me?
On Wed, Jun 6, 2018 at 1:05 PM, Sandy Dhumale sandydhumale@gmail.com wrote:
Thanks Guys,
Truly its working now.
On Wed, Jun 6, 2018 at 12:25 PM, Sharad Paghadal <notifications@github.com
wrote:
hello @sandydhumale https://github.com/sandydhumale , please have a look at @thanhnt245 https://github.com/thanhnt245 's reply.
Fixes an issue in that was preventing didCreateJavaScriptContext from being called which resulted in the JS API never being added to the web view's JS context. This only became an issue after migrating to Swift 4 since Swift 4 requires explicit @objc https://github.com/objc annotations. In UIWebViewExt.swift: @objc https://github.com/objc func webView(_ webView: AnyObject, didCreateJavaScriptContext context: JSContext, forFrame frame: AnyObject) {
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sua8051/JavaScriptInterface/issues/7#issuecomment-394960802, or mute the thread https://github.com/notifications/unsubscribe-auth/AcgbuxKRj9KGLeizrZ67tuEzjsv81Ybqks5t53zcgaJpZM4RqwqS .
-- Thanks and Regards, Sandeep Dhumale 9902383734
-- Thanks and Regards, Sandeep Dhumale 9902383734
@sandydhumale hi, i have checked and it works fine. Let try with the example.
I'm not able to configure this project into my code. Please pardon me for the steps. I'm following your steps but in JS, it always raise complain for "Native not found". Please help me into that.