简体   繁体   中英

IOS - Possible to receive notification when user receives a text?

Is it possible to receive a notification when a user has received a text within the iOS SDK? For example if your app is running, and you want to track the number of text messages received while the app is in the foreground.

I know it's not possible, I just wanted some additional confirmation for my higher-ups Thanks

No. Apple will never do this as it's a huge privacy violation.

You may be able to infer something happened by noticing your app resigned active, but that's a very unreliable measure of anything interesting.

Not in the normal SDK. Probably for jailbroken phones.

No, it's not possible.

Also, you can't detect if the user receives an iMessage.

And since you may resign active for any number of reasons (like getting a phone call), you can't really infer anything.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM