Add an email subscription form
As a developer, you might want to stay in touch with your users on Setapp. We understand this intention and can provide you with a list of their contacts if users consent. But first, you need to implement a User Permissions API for asking a user to share their email address. Thus, you can create a permission-based email list of your active users. Later, you can download it directly from your developer account.
To show a dialog box for asking users to share their email with the current application, call the askUserToShareEmail()
function of the shared SetappManager
.
When a user makes a choice, you cannot ask him/her again to change the decision.
However, if the user closes the dialog box without making a choice, Setapp will show the dialog box again:
- 2nd time — in 1 day
- 3rd time — in 2 days
- 4th time — in 3 days
- 5-7th times — in 7 days
- 8th time and further — in 30 days
The User Permissions API requires Setapp application version 3.2.1 or newer. If a user uses an older Setapp version, the email subscription form will not appear.
Updated over 1 year ago