fix a bug with the foreground/isInline flag

previously the foreground/isInline flag was always set to NO.    Now it
will be set appropriately.
Merge branch 'ios_foreground_flag_fix' of github.com:keithdmoore/aerogear-pushplugin-cordova into keithdmoore-ios_foreground_flag_fix