• Resolved itsabhist

    (@itsabhist)


    getting error on test

    Warning: array_key_exists() expects parameter 2 to be array, null given in /home/u992033758/public_html/bilaspur/wp-content/plugins/push-notification-for-post-and-buddypress/admin/pnfpb_admin_ondemand_notification_settings.php on line 83

    also not able to find Firebase Database url

    please help

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Murali

    (@murali-indiacitys)

    Please fill all fields in push notification settings, Follow below steps for

    Firebase configuration
    Sign in to Firebase, then open your project, click settings icon & select Project settings
    To get Firebase server key (for field 1 in admin firebase settings)
    project settings > cloud messaging tab > get server key or add server key button to get server key
    To get Firebase config fields (for fields 2 to 8 in admin firebase settings)
    If you do not have web app, Create a new web app. After creating a new app, it will show firebase config fields
    Project settings > General under your apps section > click on config button to view configuration fields
    To get Firebase public key (for field 9 in admin firebase settings)
    Open the Cloud Messaging tab of the Firebase console Settings pane and scroll to the Web configuration section
    project settings > cloud messaging tab > Under web push certificates > Generate key pair to get public key
    In the Web Push certificates tab, click Generate Key Pair. The console displays a notice that the key pair was generated, and displays the public key string and date added
    (If you already Generated key pair then no need to generate it again)
    After saving below fields, you will get browser prompt asking to allow notification for this website, click on allow notification
    After completing above steps, push notification will work based on option selected for posts/buddypress

    Before using this plugin please refer your firebase account and go through firebase manual how to configure it as mentioned above. In firebase console, under your app project settings, If you do not have web app, Create a new web app. After creating a new app, it will show firebase config fields including firebase database url and copy everything and fill it in admin settings.

    Regarding array key exists error i will look into it and let you know

    Plugin Author Murali

    (@murali-indiacitys)

    I have released 1.24 version to fix warning related to array key exists. Firebase always returns results after sending push notification in array whether notification sent to all subscribed device token or any other failed device tokens. In 1.24 version, it is fixed by checking Firebase results is array/non-array accordingly it will process.

    Thread Starter itsabhist

    (@itsabhist)

    Thank You

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘error’ is closed to new replies.