Giter Site home page Giter Site logo

Comments (6)

Edujugon avatar Edujugon commented on August 11, 2024 2

Hi Victor,

I think the issue is the use statement you're using.
Have a look at the top of you file, and in the use statement of package class, make sure it's not the Facade but it's the main class itself.

So it should look like this:
use Edujugon\PushNotification\PushNotification;

from pushnotification.

vitormicillo avatar vitormicillo commented on August 11, 2024 1

Thankyou Edu
Problem solved, good it gets recorded here that the correct tab to get the KEY API should be cloudmessaging.

from pushnotification.

vitormicillo avatar vitormicillo commented on August 11, 2024

Hi Edu thanks,
apparently it seems that the problem has been solved, but the push messages are not working, I set the devicetoken and api_key based on the data from the firebase.

from pushnotification.

Edujugon avatar Edujugon commented on August 11, 2024

Try to dd the feedback in order to see what's happening.

after sending the mail do this:

dd($push->getFeedback());

from pushnotification.

vitormicillo avatar vitormicillo commented on August 11, 2024
Client error: POST https://fcm.googleapis.com/fcm/send resulted in a 401 Unauthorized response:\n
    <HTML>\n
    <HEAD>\n
    <TITLE>Unauthorized</TITLE>\n
    </HEAD>\n
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n
    <H1>Unauthorized</H1>\n
    <H2>Erro (truncated...)\n
    """
}

Strange I'm using FCM non GCM

from pushnotification.

Edujugon avatar Edujugon commented on August 11, 2024

It seems you are unauthorized.
Make sure you set the correct API key. This link may be useful or this one

from pushnotification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.