Android GCM message not calling onMessageReceived when the app is in the foreground

According to the documentation: If you want foregrounded apps to receive notification messages or data messages, you’ll need to write code to handle the onMessageReceived callback. What I have: I have the service extending FirebaseMessagingService and overriding onMessageReceived as explained in the documentation (also in the manifest and the permissions). The payload of the message…

Details

Quotes encoded in url

I need to call this url https://graph.microsoft.com/beta/users?$filter=startswith(displayName,’Matteo’) This is my typescript/angular code: import {HttpClient} from ‘@angular/common/http’; import {Injectable} from ‘@angular/core’; @Injectable() export class EmployeeService { baseurl: string; constructor(private http: HttpClient) { this.baseurl = ‘https://graph.microsoft.com/beta/users’; } search(term: string) { const url = this.baseurl + “?$filter=startswith(displayName,'” + term + “‘)&select=employeeId&mailNickname”; return this.http.get(url).subscribe(response => console.log(response)); } But I…

Details

Why my colors doesn’t show in all terminals?

I have the following piece of code. bold=” reset=$(echo -en ‘\033[0m’) black=$(echo -en ‘\e[1;30m’) magenta=$(echo -en ‘\033[00;35m’) blue=$(echo -en ‘\e[1;34m’) cyan=$(echo -en ‘\e[1;36m’) green=$(echo -en ‘\e[1;32m’) orange=$(echo -en ‘\e[1;33m’) purple=$(echo -en ‘\e[1;35m’) red=$(echo -en ‘\e[1;31m’) white=$(echo -en ‘\e[1;37m’) yellow=$(echo -en ‘\e[1;33m’) lime_yellow=$(echo -en ‘\e[1;33m’) power_blue=$(echo -en ‘\e[1;34m’) blink=$(echo -en ‘\e[1;31m’) reverse=$(echo -en ‘\e[1;31m’) underline=$(echo -en…

Details