title: Unauthorized: master key is required (Code: 0, Version: 1.12.0) + iOS + Parse + SNS after Parse Migration to AWS
body: <p>When I sending push notification from iOS App after parse migration into AWS + MongoLab, I get an error - unauthorized: master key is required (Code: 0, Version: 1.12.0), how I resolve it, and I using iOS parse code for sending message for notification and AWS SNS service by using Mobile Hub. </p>
  
  <p>before parse migration to AWS, push notification send perfectly, after migration parse push to aws using this link <a href="https://mobile.awsblog.com/post/Tx3NE69QDHI7LJK/Migrating-from-Parse-Push-to-Amazon-SNS" rel="nofollow">https://mobile.awsblog.com/post/Tx3NE69QDHI7LJK/Migrating-from-Parse-Push-to-Amazon-SNS</a>, I am getting this error - unauthorized: master key is required (Code: 0, Version: 1.12.0) even I had also used one signal instead of SNS for removing this error, still I am getting the same error, it works fine when I test notification using step -4 of the above link.  below is my iOS parse code which I am using in the app -</p>
  
  <p>PFQuery *queryInstallation = [PFInstallation query];
                   [queryInstallation whereKey:kESInstallationUserKey matchesQuery:query];</p>
  
  <pre><code>             PFPush *push = [[PFPush alloc] init];
               [push setQuery:queryInstallation];
               NSDictionary *data = [NSDictionary dictionaryWithObjectsAndKeys:
                                     message, @"alert",
                                     @"Increment", @"badge",
                                     @"homerun.caf", @"sound",
                                     @"m", @"p",
                                     nil];
               [push setData:data];
               [push sendPushInBackgroundWithBlock:^(BOOL succeeded, NSError *error)
                {
                    if (error != nil)
                    {
                        NSLog(@"SendPushNotification send error.");
                    }
                }];
  </code></pre>
  
  <p>I am using client side code mainly, but for some aspect also using cloud side code. </p>