watchOS: Wrong product name shown when asking for HealthKit authorization - apple-watch

I created a watchOS standalone app which uses HealthKit. When prompting the user for authorization, the Dialog shows the product name of the app extension (which is "MyApp WatchKit Extension"). I tried replacing $(PRODUCT_NAME) in the Info.plist file but that didn't change anything. The only thing that worked was changing the Product Name in the build settings. But that's not what I want to do. Any ideas?

Related

Can Logo and Name of the App Change After Login? Swift

Let's say that the logo of the app is simple W and the name of the app is My Life.
After login with a business mail I want to change the name of the app and the logo according to the business mail.
Is it possible and if yes how?
You can change an app icon if the app already contains the desired icon (see https://www.hackingwithswift.com/example-code/uikit/how-to-change-your-app-icon-dynamically-with-setalternateiconname); you cannot, say, download an icon and switch to it from within the app.
You cannot change an app display name at all. It is set through the info.plist. It can be localized (so that it changes if the user changes languages) but not altered.

Share 1 Facebook App ID with multiple iOS Apps using ACAccountStore

I have an iOS app configured to use Facebook login via iOS's ACACcountStore. I'm not using the Facebook SDK.
I'm creating another app (for the same company) and I'm trying to take advantage of the existing Facebook App that I've set up for the first iOS app.
I've read that you can add multiple bundle ids in the Facebook App's Settings. I've done this, but unfortunately, I get an ACErrorPermissionDenied error when trying to log in.
Using iOS's built in Facebook login, am I able to share one Facebook App Id with multiple iOS apps with different bundle ids?
Ahh, figured it out.
The good news is that this is definitely possible. Just go into your Facebook app's settings and add another bundle id.
Make sure that the bundle id you've set in your app is exactly the same as the one you add to facebook.
In my case, I was formatting part of my bundle id like so:
com.myApp.${MY_CUSTOM_BUNDLE_ID_SUFFIX:rfc1034identifier}.
MY_CUSTOM_BUNDLE_ID_SUFFIX is a User-Defined setting in my Target's Build Settings. I had it set to:
foo.bar
When processed with the rfc1034identifier, the . was converted to a - so it ended up being com.myApp.foo-bar, so the mismatch is what was causing login to fail.

"The App Name you entered has already been used" even though I just created the app

I am trying to create my app on iTunes Connect, so I can add my game center features. When I reach the screen where I fill in the default language, app name, sku number, and bundle id, I receive an error message:
The App Name you entered has already been used.
Does this mean someone else has used this app id? I couldn't find the an app with this name on the iTunes Store anywhere.
I just started creating the app on iTunes Connect, so I definitely didn't use it.
Is there some way to verify that this is not a bug, and someone else has chosen the name?
If you created an entry for the first App in iTunesConnect, even if it was never submitted or uploaded, then that name is locked to that iTunesConnect App permanently. That means if another user have choose same name already but still not upload and release app than you will not able to find on itunes store.
See Apple app store tips
The name you select for your app is perhaps one of the most important aspects to marketing your app and can distinguish your app on the App Store.
If you submit an app name which is already in use within the same geography in which your app is sold, you will be prompted to enter another name.
You can find more info in iTunesConnect Developer's guide
You can submit an app with the same name if you change the default language (for example, changing English (US) to English (Canada).
replace Runner with your app name
Apple also accepts the appeal on it only If you have trademark rights of given name.
The app name you entered is already being used. If you have trademark rights to this name and would like it released for your use, submit a claim.

ios bundle id questions to start first facebook app

I've been trying to learn how to do my first facebook app. The directions at developers.facebook.com/apps/407656052586647/summary?web_hosting=0 asks for my ios bundle id.
I've looked on this website, and Bundle ID Suffix? What is it?, discusses it (assuming bundle id and bundle suffix id are the same), and it sounds like it's linked to the apple id. I'm just developing the app and don't have an apple id yet, assuming it's tied to distributing the app to itunes. Which comes first, the chicken or the egg? I haven't even written the app so how could I have an id for itunes? I saw this Bundle ID for App submission iOS, but I'm absolutely not ready to submit it to itunes.
I read somewhere on this site that I need to go to xcode ->resource->settings bundle to create a bundle for the project. Would I put every file for the project in the bundle in the finder window?
Also, the hackbook example, referred to in http://thinkdiff.net/facebook/how-to-develop-facebook-application-for-iphone/comment-page-1/#comment-293743, in step 3 (it's calling it demoApp, but the name I found is Hackbook, but it's working as an example so far anyway) refers to setting the kAppId. Their link to create an app id doesn't work. Would it be the same as what I'm doing at developers.facebook.com in the first paragraph of this question above? Would this app id be what I get from a successful submision at developers.facebook.com/apps/407656052586647/summary?save=1 ? I see they are listing an app id and app secret code there, but it's not working because I don't have an ios bundle id? Would the bundle id be my bundle name (drag contents of xcode project in)?
Thanks for any help you can provide...
Mich
There's no need to worry about submitting the app to iTunes yet.
In order to get your app working with Facebook, you'll need to access https://developers.facebook.com/apps.
From there, click "Create New App"
Simply specify App Name. App Namespace is not needed at this point and is optional.
Click Continue and you're new Facebook app will have been created. From there, you will be provided your App Id. Use your Facebook App Id in this line of code:
[[Facebook alloc] initWithAppId:#"<APP ID GOES HERE>" andDelegate:self];
Your links dont work, but I think that they refer to the bundle ID on developer.facebook.com where you will need to create an App ID and use it in your iOS app. Did you do that already? Thats definitely a prerequisite before you even deal with itunes.
This seems to be a popular question so I thought I'd add some more info on what I decided to do. After I created the app id at the facebook developers link, I wound up using ShareKit2.0 to get the newer version of ios to work. The Hackbook/Demo example at the link above is in the older ios version so I couldn't get it to work with ios5. It was helpful to use the Hackbook to figure out what I needed for permissions, but that's it. I wound up following the SharKit2.0 directions (not at their website, go to the git version that the community is currently updating). Static Facebook sdk has no .m files in it
The directions that are at the link were helpful to create and start my first facebook app including app id. I never wound up doing anything with Bundle.

Renaming iOS App after submission to AppStore

I just developed and submitted the App. In development and testing purpose, I gave the App name as "XYZ" and while preparing for AppStore I gave a name in iTunes connect as "XYZ-abcd".
And while trying to upload binary it showed error, so I had to change it's name to "XYZ-abcd" but after running the App on my phone, the whole text doesn't shows up. I have already uploaded the binary and status shows: Upload received.
How to change it?
There are few different places where an app's "name" is used:
The bundle identifier - this is the com.yourcompany.my-cool-app id that the system uses to identify your app on iOS and in iTunes Connect. This is just something unique to you that doesn't change for the life of your app as long as it is live on the app store. I have an app whose identifier is nothing like the name that's displayed on the app store
The bundle name - this is name that is displayed by iOS (under the icon on the springboard, in settings, etc.). You can make this short or abbreviated in order to not truncate, but it must be similar to:
The App Name (on iTunes Connect). This is what is actually displayed on the app store when users search for your app. My app uses the longform app name plus a dash and a 'subtitle' if that's what you want to call it. For example, Tweetbot (not my app): "Tweetbot — A Twitter Client with Personality for iPhone"
It sounds like the error you are encountering is related to you changing the bundle identifier in your app, but not having the bundle id match in iTC. Change your bundle id to whatever you have on iTC and it should upload just fine.