iOS Question Firebase notification in debug mode

Discussion in 'iOS Questions' started by marcick, Jan 13, 2018.

  1. marcick

    marcick Well-Known Member Licensed User

    As mentioned in the tutorial, I have uploaded in Firebase only the production APN, but the notification are not working when I'm in debug mode.
    Where I'm wrong ?

    I'm trying to compile this way

    Code:
    #If RELEASE
               #CertificateFile: ios_distribution.cer
              #ProvisionFile: AdHoc.mobileprovision 
        #Else
            #CertificateFile: ios_development.cer       
             #ProvisionFile: Development.mobileprovision 
        
    #END IF
    or this way also

    Code:
    #CertificateFile: ios_distribution.cer
              
    #ProvisionFile: AdHocB.mobileprovision
    But no success. Notification works only compiling in release.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You shouldn't use a development certificate at all.

    Always use a distribution certificate.
     
  3. marcick

    marcick Well-Known Member Licensed User

    Difficult to guess why notification does not work when I’m in debug mode, right ? ...
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Use the same certificate in debug mode and release mode.
     
  5. marcick

    marcick Well-Known Member Licensed User

    Well,
    try, try and retry, finally it works in debug mode also but I don't undrstand what I was doing wrong ....
    Thank you
     
Loading...