Skip to content

Instantly share code, notes, and snippets.

Working from home

Shravan Jambukesan ShravanJ

Working from home
View GitHub Profile
ShravanJ / DeviceToken.cs
Created Oct 2, 2019
Get iOS 13 Device Token on Xamarin.iOS
View DeviceToken.cs
public override async void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
var token = "";
/* Tokens generated on devices running iOS 13+ follow a different format which requires conversion for the backend to process them
More info:
if (UIDevice.CurrentDevice.CheckSystemVersion(13, 0))
byte[] result = new byte[deviceToken.Length];
Marshal.Copy(deviceToken.Bytes, result, 0, (int)deviceToken.Length);
ShravanJ /
Last active Feb 6, 2019
Get information about an App Store app record from the command line (requires curl and jq)
# Requires curl and jq (
# To run, make executable with chmod +x then execute with ./
# For example, ./QueryAppStoreRecord org.videolan.vlc-ios
curl -s$1 | jq '.'
View gist:c196e1300c67ecb2d2c7
/**CracklePop for application
*@author Shravan Jambukesan
public class CracklePop{
public static void main(String[] args) {
for (int x = 1; x <= 100; x++)
You can’t perform that action at this time.