I have an app which shares a link. When someone taps on that link, it is opening Safari mobile app, then automatically opens app (lets say : AppName) if is installed on his device.
let url = "appname://listener?mid=560aa7"
This is working perfect on iOS 8+, but on iOS 9 stopped to work.
Please note that I have FB added also, on URL Scheme.
My URLType is like this:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>com.appname.mobile</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb705.....</string>
<string>appname</string>
</array>
</dict>
</array>
And starting with iOS9, I added:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>appname</string>
</array>
And no success. Can anyone help me?
I tried with appname: or appname:// and no success.
Also I aded new mothod for openURL:
func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool
I don't see a problem on your side, seems like everything is set correctly.
However, regarding iOS 9, other users reported this problem with iframe. Make sure the things are setup correctly on server side. Check these 2 links:
iOS 9 iFrame Problem 1
iOS 9 iFrame Problem 2
Related
I' ve developed a Flutter app based in Firebase Auth with the additional sign in method of Sign in With Google.
I implemented it using the package google_sign_in: ^4.5.6 .
It works easily for iOS, Android and Web. For MacOS I used the same Certificate and added this code in the info.plist file:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.googleusercontent.apps.*****/Private key/*</string>
</array>
</dict>
</array>
But it still doesn't work.
The macOS app works perfectly using Firebase Auth and is also connected to the network. So:
Is there a more action to do or code to add (like WEB support)?
If I press the google sign in button nothing is shown it doesn't open the page with google log in and Also in the console it returns nothing.
google_sign_in: ^5.0.2 is not currently supported, only android iOS and web
I am crating files of Microsoft office word, excel and powerpoint using apple script in Mac OS app. I need an AppleScript in my app with enabled sandbox. I found example code on apple developer side but How can use same code for Microsoft office.
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.apple.mail</key>
<array>
<string>com.apple.mail.compose</string>
</array>
</dict>
Is anybody know the correct entitlements record in XCode for Microsoft office?
What should i set in <array> </array> tags?
<key>com.apple.security.scripting-targets</key>
<dict>
<key>com.microsoft.Word</key>
<array></array>
<key>com.microsoft.Excel</key>
<array></array>
<key>com.microsoft.Powerpoint</key>
<array></array>
</dict>
For me it only works with
com.apple.security.temporary-exception.apple-events
even if "scripting-target" should be the preferred way according to apple docs
The values in your example are correct.
I've updated XCode7 and like everyone, i have to amend a part of my code to be compliant with Swift2.
But i have a problem, when i m testing the app on the simulator i have no problem. But when i m trying directly on my real device (Iphone 5S IOS9), a black screen displays just with the level of the battery.
I have tried during 3 days to find something on stackoverflow, but nothing seems working.
This topic seems to be the same problem, but doen't work actually. IOS 7 launch image, displaying black screen on device ONLY
I' ve followed the topic iOS 9 Black Launch Screen but it doesn't bring any correct solution
Any idea, or help will be appreciated.
Its worked for me:
You can solve this problem using following steps :
First select root level of project and then go in General tab and Find that below blocks.
By default, in "Launch images Source" it shows "Use assets catalogs", click on it
It will ask you to "Migrate launch images to an asset catalog", simply click on "migrate".
Now, In same block in "Launch Screen file", remove default launch screen xib or storyboard. because we don't need to specify it. Just put blank on there.
Now it shows, "Brand Assets" in *launch Images Source", just click on right side arrow of it and set all your app launch screen assets with specific naming scheme.
Press "alt + cmd + shift + k". It will clean build folder of your application.
Now, build and run your app in device.
When your app connects to an Webserver or to a domain with localhost or non https means http , than post below into your info.plist:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict>
<key>127.0.0.1</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
This let the app make an exception to use Urls without SSL / https.
In my OSX app I have a WebView that goes to a page with Silverlight content. Everything works well in non-sandboxed mode, but as soon as I "sandbox" it the Silverlight content does not load... just a blank WebView. Has anyone else noticed this?
I have played around with the entitlement file and have enabled everything possible. Regular web content works fine, but not Silverlight content. Here are my settings, perhaps someone can offer any suggestions.
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<!-- Here I tried using the temporary-exception entitlement to point to the Silverlight plugin, but it did not work :( -->
<key>com.apple.security.temporary-exception.files.absolute-path.read-write</key>
<array>
<string>/Library/Internet Plug-Ins/Silverlight.plugin/Contents/</string>
<string>/Library/Internet Plug-Ins/Silverlight.plugin/Contents/MacOS/agcore</string>
<string>/Library/Internet Plug-Ins/Silverlight.plugin/</string>
<string>/Library/Internet Plug-Ins/Silverlight.plugin</string>
<string>/Library/Internet Plug-Ins/</string>
<string>/Library/Internet Plug-Ins</string>
</array>
<key>com.apple.security.temporary-exception.files.home-relative-path.read-write</key>
<array>
<string>/Library/Internet Plug-Ins/</string>
</array>
<!-- I read somewhere online to try this but it did not work :( -->
<key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
<array>
<string>com.apple.WebKit.PluginAgent</string>
</array>
Do I need to do anything with my code so the Webview sees (and loads) the Silverlight content? I'm puzzled because it works just fine without sandboxing, but I can't Submit to the Mac App Store unless it works in a sandbox. Any help would be greatly appreciated... thanks!!!
I have done it in windows, how do i register a protocol on mac osx. I want to click links in firefox (a href="somename://mylinkAndData") and launch a binary?
Have a look at Apple's Launch Services Programming Guide. You have to add CFBundleURLTypes to your apps Info.plist and register your app with LSRegisterURL().
Excerpt from Firefox.app/Contents/Info.plist:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLIconFile</key>
<string>document.icns</string>
<key>CFBundleURLName</key>
<string>http URL</string>
<key>CFBundleURLSchemes</key>
<array>
<string>http</string>
</array>
</dict>
....
EDIT: See Handling URL schemes in Cocoa for a how-to article