by Douglas Rosa.
Hey John! I got mine to work.
I did it this way:
1 - GCM and Apple Push Notifications
First, I defined what would be the Bundle ID. Lets say: com.douglasrosa.elapp
So, I created a new project in the Google Developer Console, reporting as ID com.douglasrosa.elapp.
After that, I created the application in the Apple developer account again, using the Bundle ID: com.douglasrosa.elapp (later, I generated all the certificates needed to use push notifications, as the installation tutorial for Airnotifier indicates) .
2 - Airnotifier
It is very important that the version of Airnotifier installed is exactly the one indicated by Juan in one of the guides, the branch must be moodle2. If it is not the same installation, you will have problems later.
In Airnotifier, I created a new application. The name was com.douglasrosa.elapp and the shortname comdouglasrosaealpp.
I entered the data for the GCM (ID and API Key I created in the first step). I inserted the certificates generated by Apple and started the server.
Then, I created a token with all the permissions, to use later in the Moodle configuration.
3 - Moodle
In Moodle, in addition to enabling all the necessary Webservice options, I configured the application access for Airnotifier Server (Admin -> Plugins -> Messages Outputs -> Mobile). Server address, port, app unique name (com.douglasrosa.elapp) and the short name (comdouglasrosaelapp). So I used the access key I created on the Airnotifier.
In the database tables: user_devices and message_airnotifier_devices I have removed all the records.
4 - Moodle Mobile
In the application, I've changed the places that uses the application's default name. The changes were in config.json, where app_id: com.douglasrosa.elapp) and config.xml, where I modified the widget_id = "com.douglasrosa.elapp".
I also entered in the settings the new Sender ID for GCM, project that I created in the Google Developer Console in step 1.
Even then it still was not working, so I added the phonegap-plugin-push plugin to the project:
cordova plugin add phonegap-plugin-push --variable SENDER_ID = "XXXXXXX"
(To install this plugin, you already have to have installed the COCOA in the project for iOS, in case you are planning to launch for both platforms, if you have not added yet, it will give you an error)
For iOS release notifications to work, I followed the steps in the normal installation guide and then linked the project to my Apple developer account via XCODE.
And then, after that, it started working.