Image and Video links do not open in Electron app - image

Hi,
I face a very weird thing from electron that I could not understand why.
Suppose we develop a very simple webView tag based electron app like following link
simple electron webview sample
Then I changed the default website to www.varzesh3.com which has some video links always.
Then when I click on the image or video links, those links does not open and I do not know why.
It seems that because those links are not normal links, they wont open.
Please let me know if you have any ideas in this regard.
Thanks

I find a link and based on it, I can remove this bug.
Choose which popups should be allowed from webview in electron app
This is the updated fork of electron-webview project that in which I resolve that bug.
https://github.com/monhi/electron-webview

Related

Need to convert a legacy safari extension into Safari App Extension. Searching for documentation, starting steps and tutorials on Xcode

I have a legacy safari extension which I need to convert into Safari App Extension to submit into Extension Gallery. I am new to Xcode therefore, not familiar with it's build and run process. I tried looking into official documentation from developer.apple.com but it is so abstract.
Why do we need to create a parent app in Xcode before creating a
safari extension target?
If so what parent app template should I
choose? Cocoa App?
Where I can find starter tutorials on Xcode?
What is the submission process to Extension Gallery?
How can add the extension under development to my safari through xcode for testing?
I heard they need the URL for extension to approval, when we are submitting extension through developer account why to host it on URL?
Any documentation or answers to the above questions would be very helpful. Thank you.
On 2. and 3, I had the same struggles - I wrote up a tutorial on basic style sheet injection in Safari App Extensions here: https://ulyngs.github.io/blog/posts/2018-11-02-how-to-build-safari-app-extensions/
I'm converting the legacy safari extension to safari app extension too and have some answers for your questions:
Because app extension is more as functional extension then safari browser extension and could bring more features to you. And as per Apple says: safari app extension gives more communication and data exchange between Safari and your native app, docs.
But I have no more ideas if you only want an extension for safari why this is only way to do extensions.
Yes, you should use the Cocoa App template. If you don't need the window for your app, you can remove it simply in Main.storyboard or make app as a "service".
A lot of docs from Apple I've read but understood a bit then expected. So I found some youtube channels (they are 2 or more years old but some things seems don't changed) Some vieos here and the Osx Dev Daily playlist on this channel. And of course official swift docs if you select swift for your app as PL.
I haven't read about this, but think it must be submitted with your Cocoa App.
First of all you should to run your app target and only after this you should run your extension target and choose "Safari" in showed window to run in. If you have no the signing at the moment so ensure to enable "Allow unsigned extensions" in Development > Allow unsigned extensions in Safari app.
Don't meet this info, could you share it, pls? (sry, don't have enough knowledges)
Hope, it helps to you!
P.S. also recomend to see the converting docs, but it may be insufficient for converting :)
EDIT: it's seems to be incorrect to remove app window or change the default menus created by Cocoa App template for app submit for App Store. Some people got negative decision of app submit because of menus changes of redundant items or app have poor functionality or has not it at all. So consider to read the submit docs.
Please, share your experience when you'll have success app submit!
EDIT 2: Today I found template in Xcode 10.1 that can be used for Safari Extensions directly. It is as previous workflow (template Cocoa App + add extension target) but there is safari extension target already included
The app window and menu is simplified for developers:
So you don't need work with your app and you can concentrate on extension only.

Can I add a deep link in a laravel web view phone application?

I tried a lot to add a deep link in '< a >' tag to open up a page in another app but it didn't seem to work from the web view application. Worked from the phone browser though, but only for few IOS phones.
Any ideas if this is gonna work on a webview? or any work around to make it work?
Thanks !

Zooming images in an Ionic PWA

I am looking to pinch/zoom images in an Ionic PWA. I can build PWA’s which work for zooming (the whole window zooms) when opened in a browser, but as soon as I save to Standalone mode this becomes disabled I assume this is due to the metadata provided when creating standalone mode.
I’ve tried the ionic-img-viewer plug-in and it doesn’t help.
I don’t know where else to go with this.
Thanks for any pointers
Shane

Open URL from HTML5 xcode app

I initially started doing this app with Dreamweaver and phonegap build. After running into some issue I bypassed Phonegap build and imported my project directly into xcode (my first time using).
The problem I am having is when someone clicks the url it opens up in the app instead of the browser. I am very new to apps in general and a baby when it comes to xcode so forgive me if this is pretty cut and dry.
My anchor looks like this:
<a data-role="button" href="http://www.google.com/" target="_blank" style="color:#07a54a;">
Like I said when someone clicks that, its like it opens within the app and there is no way to get back to the app unless you kill it.
Specifically my questions is how do I get this url to open outside the app in the phones browser? I have watched and read numerous tutorials talking about .h and .m files, but all of these seem to be using the drag and drop story board which I dont have or know how to use.
Can someone tell me how I can have this (and other absolute url's) open in the browser outside of the application?
Thanks
There's no such thing as an "HTML5 Xcode app". You say you bypassed PhoneGap and imported it directly, but that's not possible. Xcode doesn't know what to do with plain HTML 5. It sounds like you are still using PhoneGap, in which case you follow whatever the normal PhoneGap procedure for opening links in Safari is.
Found it: Thanks http://docs.phonegap.com/en/2.3.0/cordova_inappbrowser_inappbrowser.md.html
Poorly worded on my end, app uses phonegap :D

Soundclound embed failed in firefox

I found a bug with the SoundCloud embed. Randomly, the sound does not start on Firefox (3.6 to 12)
Everything works fine on Google Chrome or Internet Explorer.
You can see it here: http://clichesdecampagne.franceinter.fr/story/nous-sommes-le-peuple-de-france#item-4f6b9b31da7f5cec3b45fd38
Any idea ?
Weird. I'm able to reproduce it on the site, but when embedding the same widget in another page it works fine. I'll forward it to our widget developers and see if they have an clue.

Resources