Skip to content

Instantly share code, notes, and snippets.

@RomanovX
RomanovX / NativeDataPlugin.m
Created June 12, 2017 19:15
NativeDataPlugin.m Used as plugin for cordova. We use the init and setEnabledButtonsCall to set the buttons
#import "NativeDataPlugin.h"
#import <Cordova/CDVPluginResult.h>
@implementation NativeDataPlugin
- (void)init : (CDVInvokedUrlCommand *)command
{
NSString * baseUrl = [command argumentAtIndex:0];
NSString * token = [command argumentAtIndex:1];
NSString * phoneDeviceId = [command argumentAtIndex:2];
@RomanovX
RomanovX / NowButton.swift
Created June 12, 2017 15:12
Functions for buttons of widget
//
// NowButton.swift
// NowWidget
//
// Created by appName on 24-01-17.
//
//
import UIKit
@RomanovX
RomanovX / TodayViewController.swift
Created June 8, 2017 10:50
TodayViewController of widget
//
// TodayViewController.swift
// NowWidget
//
// Created by appName on 23-01-17.
//
//
import UIKit
import NotificationCenter