1. Why make your app exit if it is an unwanted behavior in iOS?
2. You are causing your app to crash. It doesn't sound like a good solution for anything.
Erel, it is not a trivial question and it could very well be a solution for a major problem - app stores gouging 30%.
Apple has just deleted a part of their legalese, this explains it pretty well:
https://au.pcmag.com/mobile-apps/90...es-let-devs-share-info-about-outside-payments
the important bit is under "Deleted from 3.1.3".
Basically what it means is that if you gleen your customer contact info from sources outside the app then you are free to contact them and offer them non-app payment options.
We know all the contact details of our customers before apps come into play, basically up till now it worked like this:
- customer visits our website and pays upfront for a digital "ticket" to access photos and videos we have captured of them in an amusement park.
- the customer gets sent a ticket as an SMS or email - this contains a URL with the customer's ticket number embedded in it.
- the customer taps the URL and gets directed to a webpage which asks if he has the app installed.
- if he responds NO he gets taken to the appropriate app store.
- if he responds YES the app is launched via URL schemes embedded in the app - at which point the app is passed his ticket number.
- and we are off to the races...
The downside of this approach is the customer has to pay before he installs the app and sees what he is getting - significant reasons to be hesitant.
What we want to do is:
- customer visits our website and gets a free "preview" digital "ticket" to access preview quality photos (very low res).
- as above
- as above
- as above
- as above
- customer looks at preview photos and decides he wants to download full res versions to his gallery and share them.
- when he indicates this - the app disappears and he is back at the launch webpage which asks "if you are ready to pay now..."
- he taps the pay now button in the webpage and gets directed to our own paywall.
- once payment is made he is directed back to the app.
This all neatly (as far as we can see) fits the new legalese - at least Apples's but Google won't be far behind.
If the Android app is closed via ExitApplication or the like the webpage is there - so it's a no brainer here.
If the iOS app is closed by my trick the webpage disappears - still got to solve this - any suggestions??????????.
Sorry for the long winded response but this could be very important.
Appreciate any feedback...