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.
Related
I have a Xamarin iOS app that I am trying to distribute in the App Center. It will send out an email and install fine, but when you run it, you get the error
MyApp.iOS Wants to use "appcenter.ms" to sign in.
I have the option of cancelling or continuing. I hit continue and it signs in and says In-App Updates are enabled. It then returns to my app with the message:
In-App updates disabled.
This release was either side-loaded or downloaded using a browser in private mode.
I can either Ignore or Reinstall app. Ignore lets the app work, but it no longer checks for updates. If I Reinstall app, it opens App Center and I can install it, then it starts back at the beginning. It is using Safari to do the original install. I assume that when it does the Reinstall app from within my app, it is using a Safari based browser. Nothing is in private mode as far as I can tell. My startup code for App Center is
Distribute.UpdateTrack = UpdateTrack.Private;
Distribute.DisableAutomaticCheckForUpdate();
AppCenter.Start("11111111-2222-3333-4444-555555555555",
typeof(Analytics), typeof(Crashes), typeof(Distribute));
In my main view, I have the code
public override void ViewDidLoad()
{
base.ViewDidLoad();
Distribute.CheckForUpdate();
}
In my Info.plist I have
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>appcenter-11111111-2222-3333-4444-555555555555</string>
</array>
</dict>
</array>
Cookies are not disabled that I can tell. I have searched high and low and can't find anything like this. The only similar issue seemed to be someone messed up the Info.plist. Can anyone help?
OK, I finally figured this out. When I was testing the distribution of my app from the App Center, rather than spam the whole group until it worked, I just distributed it to myself. This is what caused the problem. What I had to do was to create another distribution group and only have myself in it. Automatic updates started working once I did this. The point being is that if you don't distribute it to a group, then it thinks it's side-loaded.
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've seen that applications like Steam, Spotify, and others, are able to launch native applications from inside Chrome, after the user allows the invocation in the pop up box. How can I do this from my own website, for VLC, or failing that, the default system video streaming application.
Sure, Safari, for example, will open VLC for rtmp:// links like
<a target="_blank" href="rtmp://zozolala.com">text</a>
You can invoke video player from JavaScript:
window.open('rtmp://zozolala.com', '_blank');
You can specify URLs your OS X app can open by adding them to .plist:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLIconFile</key>
<string></string>
<key>CFBundleURLName</key>
<string>abc</string>
<key>CFBundleURLSchemes</key>
<array>
<string>abc</string>
</array>
</dict>
</array>
If you want to feed your VLC with HTTPS URI (this URI will be opened in Safari by default), you can do a trick: prepare .m3u playlist file with https:// entry inside and make this file be available via some other protocol (for which default app is VLC), like RSTP or SFTP.
Do not assume the user has VLC installed. To answer exactly your request :
If you are using web technologies, you'll probably have no other choice than a Java plugin, Flash, ActiveX or SilverLight to Exec an external application.
This one for ActionScript (Flash) : Execute external exe from projector flash
May be this one for your Java Plugin Executing an external program using process builder or apache commons exec
If you are using native technologies (C/C++, Objective-C, etc). You can use Exec... More specifically, on Mac OSx, you'll probably want to refer to Execute a terminal command from a Cocoa app
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
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!!!