I’d like to have my free and paid versions of iOS app to share a single FB app ID, but what I’ve done so far seems not to be working. I must be missing something, but I don’t know what that might be.
Here’s what I have for build.settings :
[lua]
settings = {
iphone = {
plist {
UIApplicationExitsOnSuspend = false,
FacebookAppID = “123456789012345”,
CFBundleURLTypes = {
{
CFBundleURLSchemes =
{
“fb123456789012345”,
“fb123456789012345myapppro”,
},
},
},
},
},
}
[/lua]
On FB dev site, under Native iOS App section, I have:
Bundle ID: com.mycompany.myapp, com.mycompany.myapppro
iPhone App Store ID: 123456789 <-- this is the the App Store ID for myapp
iPad App Store ID: 123456789 <-- this is the the App Store ID for myapp
Facebook Login: Enabled
Deep Linking: Enabled
URL Scheme Suffix: myapp, myapppro
What else am I suppose to do to ensure both myapp and myapppro can work with single FB app ID?
Currently, if my device has both myapp and myapppro installed, upon logging in to FB from the app, it always goes back to one of them. Meaning, if I launch myapp, sign in to FB, all is well. Then I close myapp, and then launch myapppro, sign in to FB… then it forces myapp to open and myapppro is unable to sign in to FB. What’s worse, if I delete myapp, launch myapppro and sign in to FB, it simply fails to sign in to FB.
I must be missing something or doing something wrong. What do I need to do to fix this?
Naomi
Edit 1: I found that URL Scheme Suffix used to work with Corona daily 1105. It no longer works with Corona daily 1193. Please see more details in the reply posts below.
Edit 2 : OMG, as I worked on putting together a test project to demonstrate this whole problem, I’m suddenly seeing this thing working just the same between 1105 builds and 1193 builds. I’m now totally confused.