In the official Apple document it says
alert
string or
dictionaryIf this property is included, iOS displays a standard alert. You may specify a string as the value of alert or a dictionary as its value. If you specify a string, it becomes the message text of an alert with two buttons: Close and View. If the user taps View, the application is launched.
Alternatively, you can specify a dictionary as the value of alert. See Table 3-2 for descriptions of the keys of this dictionary.
But I wonder if there’s any option that I can add to the code to make the push only show “close” button.
Ex of what I have now:
@"{\"aps\":{\"alert\":\"Update OS\"},\"acme1\":\"updateos\",\"acme2\":42}";
I think you can use a dictionary. Have a look at Table 3-2 on the same page, for the key
action-loc-key, it says:The single OK button is perhaps what you need.