LoginSignup
0
0

More than 5 years have passed since last update.

Rubymotion × Parse.comでPush通知が上手くいかない時の解決法

Posted at

基本的にはXcodeでやっている時と同じ。

iosでpush通知を使う手順[parseに登録/push通知の音を設定etc..]【初心者向け】

が、何回やっても上手くいかない。
push通知を許可するかどうかのnotificationまでは出せるのに、Parse側ではdeviceを検知してくれない。。。

いろいろググっているとこRakefileに設定をかかないといけないらしい。

before

 app.name = 'HogeApp'
 app.identifier = 'com.atrae'
 app.provisioning_profile = ''

after

 app.name = 'HogeApp'
 app.identifier = 'com.atrae'
 app.provisioning_profile = ''
 app.entitlements['aps-environment'] = 'development' # 開発中なので
 app.entitlements['get-task-allow'] = true     

でget-task-allowってなんだよってドキュメントみてみると、

Motion::Project::App.setup do |app|
  # ...
  app.development do
    # This entitlement is required during development but must not be used for release.
    app.entitlements['get-task-allow'] = true
  end
end

開発する間はtrueで設定しておく必要があるのか。。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0