Posts

How to deploy MYSQL on Google Compute Engine

Image
How to Setup MY-SQL using GCP VM Instance In this, I have shown a way to setup MySQL in Google cloud. 1. GCP Setup Create new Project (If already created Skip this).   Create project: 1.1   Go to Compute Engine select “Create new Instance”.   2. Configuration of VM instance (Used as per Google free Trail) 1.       Give a Name for instance. 2.       Select Region and Zone ( used as per free trail in this, u can change as per need)   Region and zone selection: 1.2         3) Select Machine Configuration                Machine Configuration: 1.3             4) Change boot disk (if u need) in my case I’m changing into to Ubuntu.                           ...

Android push notification using Firebase

  Step 1: Add following Libraries/Dependencies in your gradle (App-Level) :     //messaging     implementation 'com.google.firebase:firebase-messaging:20.2.0'     implementation 'com.squareup.retrofit2:retrofit:2.9.0'     implementation 'com.squareup.retrofit2:converter-gson:2.1.0'     //Database     implementation 'com.google.firebase:firebase-analytics:17.2.0'     implementation 'com.google.firebase:firebase-database:19.2.0'     implementation 'com.google.firebase:firebase-auth:19.1.0'      Step 2: Make A Package “SendNotificationPack” and add the following classes, two services and an interface: Interface: APIService.java // use to send request for notification to firebase server  package com.example.connect.SendNotificationPackage; import retrofit2.Call; import retrofit2.http. Body ; import retrofit2.http. Headers ; import retrofit2.http. POST ; public interface APIService ...