Show error in alertbox


#1

I am using firestore as the backend for my App. I got an error from firestore as insufficient permission. I know it is due to lack of permission.

My requirement is, I want to show this message to the users as an alert box?
How can I implement that.?

 core.js:1449 ERROR Error: Missing or insufficient permissions.
    at new FirestoreError (error.js:149)
   at JsonProtoSerializer.fromRpcStatus (serializer.js:93)
   at JsonProtoSerializer.fromWatchChange (serializer.js:536)
   at PersistentListenStream.onMessage (persistent_stream.js:389)
   at persistent_stream.js:331
   at persistent_stream.js:306
   at async_queue.js:83
   at t.invoke (polyfills.js:3)
   at Object.onInvoke (core.js:4760)
   at t.invoke (polyfills.js:3)`Preformatted text`

#2

Have you heard about the documentation?

It is a great place to know how to use all the built-in module just like alert Controller: