whatsapp

send whatsapp message using php

北城余情 提交于 2019-12-02 04:56:04
问题 hi. i want to send whatsapp message using php. i run this code <?php require_once 'Chat-API-master/src/whatsprot.class.php'; $username = "6285648145xxx"; $nickname = "ardi"; $password = "password"; // The one we got registering the number $debug = true; // Create a instance of WhastPort. $w = new WhatsProt($username, $nickname, $debug); $w->connect(); // Connect to WhatsApp network $w->loginWithPassword($password); // logging in with the password we got! $target = '62811304xxxx'; // The

Whatsapp integration and openURL issue in iOS 10

自古美人都是妖i 提交于 2019-12-02 03:44:23
问题 I have integrated whastapp in my iOS app. When I tested it in my iOS 10 device. It crashes with an issue. Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. NSURL *whatsappURL = [NSURL URLWithString:[NSString stringWithFormat: @"whatsapp://send?abid=%@&text=WelcomeToChatBought",[abidArray objectAtIndex:buttonclicked.tag-1000]]]; if ([[UIApplication sharedApplication

Whatsapp integration and openURL issue in iOS 10

房东的猫 提交于 2019-12-02 01:10:24
I have integrated whastapp in my iOS app. When I tested it in my iOS 10 device. It crashes with an issue. Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. NSURL *whatsappURL = [NSURL URLWithString:[NSString stringWithFormat: @"whatsapp://send?abid=%@&text=WelcomeToChatBought",[abidArray objectAtIndex:buttonclicked.tag-1000]]]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; } What might be

How to share content on WhatsApp from iOS

耗尽温柔 提交于 2019-12-02 00:39:21
问题 I would like to share one Url link and some text message into WhatsApp from my application. How can i share content? I got this code for only text NSString * msg = @"Trueman India Magazine"; NSString * urlWhats = [NSString stringWithFormat:@"whatsapp://send?text=%@",msg]; NSURL * whatsappURL = [NSURL URLWithString:[urlWhats stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication]

How to share content on WhatsApp from iOS

旧街凉风 提交于 2019-12-01 21:03:23
I would like to share one Url link and some text message into WhatsApp from my application. How can i share content? I got this code for only text NSString * msg = @"Trueman India Magazine"; NSString * urlWhats = [NSString stringWithFormat:@"whatsapp://send?text=%@",msg]; NSURL * whatsappURL = [NSURL URLWithString:[urlWhats stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; } but how i share my url link in WhatsApp? Include the plain link inside the text,

I want to make a Dialog Screen Like WhatsApp Profile Photo Dialog Screen

喜夏-厌秋 提交于 2019-12-01 20:56:54
hello Friends.... I am currently trying to make a Dialog using Implicit Intent where i want to show my Dialog like whatsApp(Profile Photo Screen) and in this screen whatsApp are using extra field named as "Remove Photo". When i try to make same type of screen Dialog then i am unable to add this extra field("Remove Photo"). i have done all code. its working fine for three option in Dialog like(Gallery,Photo,Camera) and i am unable to handle these all in onActivityResult() . I am sending my all source code i have tried much hard , but i am not able to find the solution to do so. plz..... friends

Restarting killed (stopped by task-killers) services in android like Whatsapp

拟墨画扇 提交于 2019-12-01 18:24:41
I am working on a app locker which has some background services (to lock apps). I am using Xiaomi Redmi Note 4g for the development. The MIUI has an in-built task manager which can be used to kill running apps. When I kill apps with this, all services, broadcastreceivers and alarmmanagers are getting removed (as expected from a task manager). My requirement is to prevent my background services from getting cleared from task-killers, but if the user navigates to settings and force closes, the service should stop. How do I achieve this? Btw, I know that its not impossible to achieve this since

UIActivityViewController Error: Failed to determine whether URL is managed by a file provider

别等时光非礼了梦想. 提交于 2019-12-01 17:26:52
I record a video in my app and write it it to the temp directory to allow the user to share it through UIActivityViewController. The video can successfully be played back in-app, and through UIActivityViewController can successfully be sent through Messages, shared to Facebook, and saved to camera roll. But when I try to share through WhatsApp, I get the following error: Failed to determine whether URL /private/var/mobile/Containers/Data/Application/E7F57458-A5F9-44CB-86FA-ACC4309C7473/tmp/65CB72B3-373E-42F2-8A80-9888E00C2268.mp4 (n) is managed by a file provider I have been unable to find