iOS action buttons configuration
Este conteúdo ainda não está disponível no seu idioma.
iOS interactive notifications let users take an action from the notification banner without opening the app. In Pushwoosh you set this up with iOS categories: each category holds one or two buttons that you create in the Control Panel and attach to a push.
Create a category
Anchor link to- Open the Configure platforms page of your application in Pushwoosh.
- Click Action buttons next to the iOS platform. You can do this before or after the main iOS platform setup.

- Enter a Category name. You will use this name to find the category later.
- Specify the Button label. This is the text on the button. iOS shows up to two lines of text.
- Select a Button type:
- Destructive: for actions such as delete, reject, or dismiss.
- Non-destructive: for positive or neutral actions.
- Set a Button ID. It must be unique within the category. Your app receives this ID when the user taps the button. See the Developers’ Guide on iOS Interactive Push Notifications for how to read it in the notification delegate.
- Optionally enable Launch app on action to open the app when the user taps the button.
- To add a second button, click + next to the first button and repeat steps 4–7. A category supports up to two buttons. Use − to remove the second button.
- Click Create to save the category. It appears in the list below with its Category ID.
Use the category in a push
Anchor link toOnce created, attach the category when you send a push via the API, pass the Category ID as ios_category_id in createMessage.
Example
Anchor link toFor a fitness re-engagement push, you might define a category fitness_reengagement with:
- Claim 20% Off (
claim_offer): Non-destructive, Launch app on action on - Maybe Later (
dismiss): Destructive, Launch app on action off

When the user taps Claim 20% Off, the app opens and your code receives claim_offer. Maybe Later dismisses the notification without opening the app.