In-App purchase subscription cancellation issue - objective-c

I implemented in-App purchase in iOS app (let's take one month subscription), it's working perfectly.
I want to ask if user cancel the subscription (before the end date) from iTunes then iTunes sends something to device or not? so we can locally update our app according to subscription.
I knows iTunes sends notification to server but my main concern on device, so we can update our app without server api calls.

Related

Hpw to do In app notification from Backend [duplicate]

This question already has an answer here:
How to send In-APP Notification in Firebase using Python SDK for Android | iOS
(1 answer)
Closed 4 months ago.
Is it possible to send in-app notification from spring boot app?
Based on the docs and sdk firebase-admin I could send push notifications. But for in app messaging I am not sure that will help send notifications from backend server
In-app messaging, as its name implies, is for messages that are triggered from (and displayed) inside the app. When the user is not actively using the app, you'll usually instead want to send a notification to Cloud Messaging, with shows up in the notification panel.
There is no direct way to trigger In-app messaging from your own server, but since the triggers are based on Analytics events - you could send a message from your server to the device (for example as a data message through FCM) and then use that in the app as a signal to log a certain analytics event that then triggers In-app messaging.
Also see:
Firebase In-app messaging send message whenever we need option?
How to send In-APP Notification in Firebase using Python SDK for Android | iOS

Can I use payment gateaway in my mobile app other than In app-purchase without getting my app rejected?

I am working on a react-native mobile app that is about unlocking experiences uploaded by other users. (roadtrips, videos, ...).
So the user can login/signup to the app, and explore the experiences uploaded, but each experience has a price the user needs to purchase it in order to view/use it.
so am I obliged to use the in-app purchase provided by apple or I can use a different payment gateaway by poping up a webview or sending him outside the app through the payment gateaway link ?
Note: without having my app to be rejected.

Developer payload (external data) in App Store server notifications

We are using server-to-server purchase notifications for Google Play and App Store mobile apps. User can pay for subscription in several ways: in web broswer (via third-party billing provider), in android application (via google play) and in ios/macos application (via app store). That is why we use custom user/subscription ids - it should be equal across all platforms/devices within single account.
Now, everhing went just fine with other billing providers until we came to App Store. We configured server side notification with callback at our server as we did it before. And now it turns out, that there is no user information in App Store receipt data. And it seems to be no way to pass that data from mobile application. For example, Google Play have so called "developer payload" field for this purposes, other providers also have possibility to add external data into server notification request. Is there any analog for App Store notifications?
Another question is about notifications itself. If there is no user information in the receipt - that means that there is no way to bind user id and receipt id data. Then what is the purpose of such notfications with external server scenario?

Does tvOS support notification facility for chat applications?

I am building a tvOS app for the new Apple TV that needs to get notifications from a server every time that a chat message is sent. This notification is also to be displayed on the Apple TV. As much as I understand push notifications are not allowed with tvOS.
With this being said, are there any alternatives to what I need?
To clarify: This is a chat app that needs to display a notification to the user on the TV screen every time a message is received by the user. The app stays running indefinitely, while showing instant notifications. - I cannot use push notifications.
Please let me know if this makes sense, and thank you in advance for your help!
We recently built an app for apple TV that shows instant messages from different clients connected to our server. A good library that will answer your requirements is socket.io-client
Just google socket.io and learn how it works. Basically, you wait for a connection on your server and then you can send messages to your clients. On the client side (tvOS in your case) you specify what methods to run as response to the different event coming from the server.
Good luck.

Can I implement Stripe Connect in IOS App?

I have read all detail about stripe payment section here. https://stripe.com/docs/connect
But unable to understand subscriptions section of this page. Please tell me how to implement stripe connect in ios app using objective-C.
Thanks in Advance.
The difference between Stripe and Stripe Connect is who plays the "merchant" role.
With regular stripe the merchant is the app provider. For example an app created by "Barney's Pizza" - The app can collect payment using Stripe for pizzas. In this case Barney's merchant details are built in to the app.
With Stripe connect the app user can register as the "merchant". For example, you create an app that allows small businesses to invoice clients. After they install the app, the user would configure their Stripe account into the app so that they received the payments. Stripe Connect also allows the app developer to charge a fee that is a percentage of the amount - so your app could be free to download but users would pay you a percentage for every charge they made.
Stripe Connect allows users to create an account with Stripe if they don't already have one, which makes the program flow a bit more complex in an app (On the web, the Stripe web site takes care of it for you, redirecting back to your page once it is done).
This answer suggests one approach to using Stripe Connect in iOS - How to use Stripe Connect in an iOS app