Open hiteshkumar848 opened 2 years ago
Hi @hiteshkumar848 Could you try changing your imports to the following instead:
firebase "firebase.google.com/go/v4"
"firebase.google.com/go/v4/messaging"
You can also refer to https://github.com/firebase/firebase-admin-go/blob/master/snippets/messaging.go for sample code.
Environment
Problem
Getting the following on running go build main.go vendor/github.com/firebase/firebase-admin-go/firebase.go:31:2: use of internal package firebase.google.com/go/internal not allowed
The error seems correct according to the document but then why is the internal package functions of firebase.google.com/go used in the admin sdk.
Steps to reproduce:
Failed to build and run the project for sending push notifications.
Relevant Code:
tried with go version: 1.14, 1.17
main.go