Jusqu'à hier, j'ai pu exécuter le code suivant pour le partager sur le profil google + de l'utilisateur mais soudainement, il est dit dans le journal de la console [GPPShareBuilderImpl getURL] |setURLToShare:| must be called for call-to-action to work
.
code:
"setURLToShare" doit être appelé pour que l'appel à l'action fonctionne
[GPPShare sharedInstance].delegate = self;
id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog];
// This line will manually fill out the title, description, and thumbnail of the
// item you're sharing.
[shareBuilder setTitle:@"AppName"
description:@"App description."
thumbnailURL:[NSURL URLWithString:@"https://www.example.com/image.png"]];
/* This line passes the deepLinkID to our application
if somebody opens the link on a supported mobile device */
[shareBuilder setContentDeepLinkID:@"post"];
// set the text of post. user can edit this before sharing.
[shareBuilder setPrefillText:@"I just created a trip from XYZ app."];
// This will create a call-to-action button with the specified label.
// - URL specifies where people will go if they click the button on a platform
// that doesn't support deep linking.
// - deepLinkID specifies the deep-link identifier that is passed to your native
// application on platforms that do support deep linking
[shareBuilder setCallToActionButtonWithLabel:@"Install"
URL:[NSURL URLWithString:@"http://www.example.com/"]
deepLinkID:@"install"];
[shareBuilder open];
Selon Google+ documentation (section Share without URL
) Je peux utiliser la méthode ci-dessous au lieu de setURLToShare:
. Et cette méthode fonctionnait bien jusqu'à hier.
[shareBuilder setTitle:@"title"
description:@"description";
thumbnailURL:@"url"];
Je n'ai pas trouvé quoi que ce soit sur Google+ liée à cela. J'ai essayé de supprimer l'application et de l'installer à nouveau. Une idée de quoi faire?
Comment est-ce possible? Je pourrais utiliser un post interactif le jour avant le problème. Même je peux poster des captures d'écran des messages, si vous voulez juste regarder. – Geek
Une fois que je commence à avoir ce problème, 'description' n'est pas publié, alors que' title' et 'thumbnailURL' sont affichés. – Geek
Il y avait un bug sur le framework iOS et il ne notifiait pas l'erreur, et cela a été corrigé maintenant. – Silvano