if there is something like “Your delivery was successful, but you may wish to correct the following issues in your next delivery” you don’t need to do anything.
Unfortunately, this doesn’t work for me.
I’m doing remote build with Visual Studio and it seems, I can’t get VS to inject custom hooks into the cordova project.
My hooks folder lands in the App itself instead of in the Cordova project’s hook folder.
Any ideas on this?
According to stackoverflow this problem has persisted since Cordova 3.5 So if any Cordova persons is monitoring this thread could you please take appropriate action? Please…
Hi, I am also facing same issue after immediately submitting my app to appStore. But my app status is still “Waiting For Review”. Do I need to submit new binary with changes or I should wait? If any one can give me suggestion the it would be helpful to me.
I am sorry to hear that explicitly defining hooks is not working for you. Try using the default hooks structure as defined by rusself9 below. Here is what he suggested:
Rather than define the hook in the config.xml, place the ios-remote-notification-fix.js file in “app/hooks/after_prepare”
Within the “app/hooks/after_prepare” folder run: chmod -R 777 ios-remote-notification-fix.js
Running cordova prepare ran the hook and so removed the unwanted lines of code!
Thanks for your answer but I guess you missed that I’m working on Windows with Visual Studio and it seems that VS doesn’t know hooks (folder) itself.
The VS project itself is not in Cordova structure but during build it creates a folder called “bld” where it places the platform specific project folders in cordova structure.
So when I add a hooks folder in VS, it’s contents aren’t placed in the hooks folder of the cordova project, the whole folder is placed inside the www folder.
I tried manually adding the file to the hooks folder in the cordova project but failed somehow. Don’t know why exactly anymore. But I’ll give it a try next time I build for iOS. ATM I haven’t even a Mac here.
Maybe the way with the config.xml is the solution for me (what is the “working folder/path” in config.xml for referencing files??)… I’ll see…
But what I’m really curious about is why they don’t just remove the unnecessary lines of code in Cordova, shouldn’t be such a big deal…?!?
I did it that way just to give it a value, even though it seems like just defining the variable would pass the #ifndef check. But with a value I didn’t get the email from Apple on resubmitting.
I am still getting this problem. I have tried various things above and even commented out the event handlers in AppDelegate.m. Does anyone know exactly what apple is looking for when it’s sending this notification about the app using the API? I am not sure how to double check before sending it, but none of the #define DISABLE_PUSH_NOTIFICATIONS or various other ways of editing and commenting out the code seems to have the desired effect.