2020年2月23日日曜日

xcrum simctl push, send apn payload to ios simulator

Xcrun is the command line tool of Xcode and it's simctl push can test push notification on ios Simulator with xcode 11.4 ( it is still beta as of 23.02.2020)

$xcrun simctl push --help

to get device information and it's identifier run the below command. in general it is easier to using "booted" as targeting device though. however if more than two simulators are running device identifier should be clearly specified.

$xcrun simctl list devices | grep Booted

$xcrun simctl push booted com.example.app payload.json



0 件のコメント:

コメントを投稿