Notification on new Email with Android

2020-03-24 08:17发布

问题:

is there a way for an app to get notified when a new email has been received? My goal is, to rise an alert (play a sound, vibrate, whatever) if an email with a specific topic gets received (think of it like an "filter" or a "rule"), but I dont want to check the email server by myself. I think I'm searching for something like "android.telephony.PhoneStateListener" but for Email.

回答1:

Sorry there is no general concept of "new email." Gmail has its own email database and management, the email app has another, and other email apps may have their own.

And there is certainly no "email server" associated with the telephony subsystem.