Before doing anything else you’ll need to complete SDK Basic Setup and then include Paddle ToolKit (PTK) in your class:
After this, simply call
presentEmailSubscribePromptWithSchedule: message: andCompanyName: and PTK will take care of the rest. If you’d like to customise the message that is shown to your customer you can also pass in a message attribute. Passing
nil as your message will leave the SDK to do this for you.
For example, this will ask for your customers email, just once, after your app has been launched 5 times and will use the default message:
[[PaddleToolKit sharedInstance] presentEmailSubscribePromptWithSchedule:@"5 launches" message:nil andCompanyName:@"My Company"];
PaddleToolKit.sharedInstance().presentEmailSubscribePromptWithSchedule("5 launches", message: nil, andCompanyName:"My Company")