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
Related
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
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.
EDITED:
i am trying to develop an app for LG WebOS TV. For the begining I just want to get an idea how to run/test application on real TV (in emulator it works fine), i am following the manual on LG Developers site (link) but it does not appear on TV (can not install) as it is said in the manual. so i am kinda stack what i am missing or doing wrong.
i am downloading DRM from test site and copying it to USB stick in this path
'/developer/apps/usr/palm/applications/DRMZIPEXTRACTED' but it does not work
i am trying to test/install on my LG TV. but still no success.
i am following this instructions. but still can not see application on tv when pluging in USB
Any ideas will be appreciated what to consider or do next coz i am realy stack.
thanks
Are you making a app with Enyo or without?
If you are making one without, have you set the App type to web, and then sub type to all?
And as you say, you have made the dir's as in the description, but in the final folder applications, you only need to have the folder com.xxx.appname.
Is that done aswell ? or do you have the zip-name as a folder, before the com.xxx.appname?
It should look like this: /developer/apps/usr/palm/applications/com.xxx.appname
I've made one yesterday, and it all worked just fine.
I try to test an app to and can't see in the smart menu, I change the name com.mycompany.app.test in the folder applications and now is showing in my stmart menu, i hope you can too
bye sorry for the bad english (tryhard)
I've built an Action Extension for my app, and when i choose to Open In... something from inside of my app, I appear as an extension for myself. This UX is kinda weird, but also, it doesnt even work when i try to be an extension of myself.
I dont see anything in the documentation that specifies responding apps aside from NSExtensionActivationRule?
This is not possible at the moment in iOS 8.0
I want to simply open some apps pages from itunes web site, but when tested in the simulator it shows me ann error that the url is invalid, despite it opens correctly from the mac browser.
My problem is similar to this one and i have write more or less the same code :
Open URL Problem in safari
Is it impossible to open itues site from safari? links like this I mean :
http://itunes.apple.com/us/app/id454060218?l=fr&ls=1&mt=8
Try using Apples own LinkMaker
I also think it's possible to remove the country part of the URL, i.e. remove the /us/ part so http://itunes.apple.com/us/app/id454060218 would be http://itunes.apple.com/app/id454060218